Created
July 25, 2021 08:01
-
-
Save igorvanloo/d8ffa198d7351de6fc11903fce0b41a0 to your computer and use it in GitHub Desktop.
Problem 52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def compute(): | |
x = 100 | |
while True: | |
count = 1 | |
for i in range(2, 7): | |
if sorted(str(x)) != sorted(str(i*x)): | |
break | |
count += 1 | |
if count == 6: | |
return x | |
x += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment