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