Skip to content

Commit

Permalink
add euler063 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
kailanefelix committed Sep 30, 2021
1 parent 11a8cea commit 1cf2841
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions euler0XX/euler063.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import itertools

count = 0
for base in range(1, 10):
for exp in itertools.count(1):
digits = len(str(base ** exp))

if digits < exp:
break

if digits == exp:
count = count + 1

print(count)

0 comments on commit 1cf2841

Please sign in to comment.