summaryrefslogtreecommitdiff
path: root/Problem16.py
diff options
context:
space:
mode:
Diffstat (limited to 'Problem16.py')
-rw-r--r--Problem16.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Problem16.py b/Problem16.py
new file mode 100644
index 0000000..e46112c
--- /dev/null
+++ b/Problem16.py
@@ -0,0 +1,6 @@
+import math
+numstring = str(pow(2,1000))
+sum = 0
+for x in range(0,len(numstring)):
+ sum += int(numstring[x])
+print(sum) \ No newline at end of file