aboutsummaryrefslogtreecommitdiffstats
path: root/sumexp.py.orig
diff options
context:
space:
mode:
Diffstat (limited to 'sumexp.py.orig')
-rw-r--r--sumexp.py.orig10
1 files changed, 10 insertions, 0 deletions
diff --git a/sumexp.py.orig b/sumexp.py.orig
new file mode 100644
index 0000000..90dd2da
--- /dev/null
+++ b/sumexp.py.orig
@@ -0,0 +1,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)