Skip to content
Snippets Groups Projects
Commit 67c40e5a authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Added solution to problem 52.

parent dae8aa53
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
def digits(n):
return set(list(str(n)))
x = 1
while True:
found = True
d = digits(x)
for i in range(2, 7):
if digits(i * x) != d:
found = False
if found:
print x
break
x += 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment