This website works better with JavaScript
Home
Explore
Help
Register
Sign In
adelq
/
project-euler
mirror of
https://github.com/adelq/project-euler.git
Watch
1
Star
0
Fork
0
Files
Issues
0
Browse Source
Power digit sum
Adel Qalieh
13 years ago
parent
f9fc104a61
commit
2947cc4f85
1 changed files
with
5 additions
and
0 deletions
Split View
Show Diff Stats
5
0
16.py
+ 5
- 0
16.py
View File
@@ -0,0 +1,5 @@
+num = str(2**1000)
+sum = 0
+for i in num:
+ sum += int(i)
+print sum