Power digit sum
First read the problem description.
= 0
digit_sum = 2**1000
n while n > 0:
+= n % 10
digit_sum //= 10
n digit_sum
1366
Source code of the solution(s):
= 0
digit_sum = 2**1000
n while n > 0:
+= n % 10
digit_sum //= 10
n digit_sum
1366