aboutsummaryrefslogtreecommitdiffstats
path: root/sumexp.py
blob: bbee0dc81b096102e947c0cb408abb17eb67820c (plain)
1
2
3
4
5
6
7
8
9
10
11
import PIL
import math
# Problem 16 Power digit sum
n = 2**1000
strn = str(n)
s = 0

for i in strn:
    s += int(i)

print(s)