Skip to content

Commit f1bc1d8

Browse files
authored
Pythonic version of Problem TheAlgorithms#16 solution
1 parent 9c7ec0d commit f1bc1d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: project_euler/problem_16/sol2.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
num = 2**1000
2+
sum = 0
3+
while n:
4+
sum, num = sum + num % 10, num // 10
5+
print(sum)

0 commit comments

Comments
 (0)