From 6d102b582bfb571d2e56d912139808b47c7e5206 Mon Sep 17 00:00:00 2001 From: treecity Date: Sat, 7 Apr 2012 18:05:10 +0200 Subject: [PATCH] 16+20 --- 16.py | 4 ++++ 20.py | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 16.py create mode 100644 20.py 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 -- 2.47.3