Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Numbers Factory by freeman_lex
def checkio(n):
s = ''
for i in range(9, 1, -1):
while not n % i:
s = str(i) + s
n /= i
return 0 if n > 1 else int(s)
July 2, 2016