Skip to content

Commit

Permalink
add euler058 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
kailanefelix committed Oct 12, 2021
1 parent a2a8734 commit 114b627
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions euler0XX/euler052.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from itertools import count

for number in count(1):
digits = sorted(str(number))

for n in range(2, 7):
product = sorted(str(number * n))
if digits != product:
break

else:
print(number)
break

0 comments on commit 114b627

Please sign in to comment.