]> git.leopard-lacewing.eu Git - prjeul.git/commitdiff
16+20
authortreecity <schaeferpm@gmail.com>
Sat, 7 Apr 2012 16:05:10 +0000 (18:05 +0200)
committertreecity <schaeferpm@gmail.com>
Sat, 7 Apr 2012 16:05:10 +0000 (18:05 +0200)
16.py [new file with mode: 0644]
20.py [new file with mode: 0644]

diff --git a/16.py b/16.py
new file mode 100644 (file)
index 0000000..b1268b6
--- /dev/null
+++ b/16.py
@@ -0,0 +1,4 @@
+sum =0
+for i in str(2**1000):
+    sum = sum +int(i)
+print sum
diff --git a/20.py b/20.py
new file mode 100644 (file)
index 0000000..c903a6b
--- /dev/null
+++ b/20.py
@@ -0,0 +1,5 @@
+import math
+sum =0
+for i in str(math.factorial(100)):
+    sum = sum +int(i)
+print sum
\ No newline at end of file