diff --git a/e016.py b/e016.py new file mode 100644 index 0000000..ea9091e --- /dev/null +++ b/e016.py @@ -0,0 +1,7 @@ +n = 2**1000 + +s = str(n) +total = 0 +for c in s: + total = total + int(c) +print 'Sum of digits for {0}: {1}'.format(n, total)