summaryrefslogtreecommitdiff
path: root/Problem16.py
blob: e46112c61c63c085562a43168c7d72635272c8f1 (plain)
1
2
3
4
5
6
import math
numstring = str(pow(2,1000))
sum = 0
for x in range(0,len(numstring)):
    sum += int(numstring[x])
print(sum)