From 7f292cce827228a5a7b34adf0c57ddf6c64e2bdc Mon Sep 17 00:00:00 2001 From: steven-y-e Date: Mon, 31 Jul 2023 16:35:29 -0400 Subject: [PATCH] feat(solution): problem #16 --- solutions/016/powerdigitsum.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 solutions/016/powerdigitsum.py diff --git a/solutions/016/powerdigitsum.py b/solutions/016/powerdigitsum.py new file mode 100644 index 0000000..12d2658 --- /dev/null +++ b/solutions/016/powerdigitsum.py @@ -0,0 +1,6 @@ +digitSum = 0 + +for i in str(2**1000): + digitSum += int(i) + +print(digitSum) \ No newline at end of file