Commit 67c40e5a authored by Taddeus Kroes's avatar Taddeus Kroes

Added solution to problem 52.

parent dae8aa53
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment