Skip to content

Commit

Permalink
add euler040 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
kailanefelix committed Sep 28, 2021
1 parent 1fb5a1b commit 26c50db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions euler0XX/euler040.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
d = ''.join(str(i) for i in range(1, 10 ** 6))

total = 1
for i in range(7):
total = total * int(d[10 ** i - 1])
print(total)

0 comments on commit 26c50db

Please sign in to comment.