From: treecity Date: Sat, 7 Apr 2012 16:05:10 +0000 (+0200) Subject: 16+20 X-Git-Url: https://git.leopard-lacewing.eu/?a=commitdiff_plain;h=6d102b582bfb571d2e56d912139808b47c7e5206;p=prjeul.git 16+20 --- diff --git a/16.py b/16.py new file mode 100644 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 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