Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Numbers Factory by grazik
def divide(number, z):
for i in range(9,1,-1):
if number % i == 0:
z += str(i)
z = divide(number/i,z)
break
return z
def checkio(number):
z = list(divide(number, ""))
check = 1
z = sorted(z)
for i in z:
check *= int(i)
if len(z) == 0 or check != number:
return 0
z = int("".join(z))
return z
Nov. 24, 2016