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

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