Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Numbers Factory solution in Uncategorized category for Numbers Factory by capback250
# migrated from python 2.7
def checkio(n):
nums = []
while n > 9:
found = False
for i in range(9, 1, -1):
if not n % i:
found = True
nums.append(i)
n = n // i
break
if found is False:
return 0
nums.append(n)
return int(''.join([str(x) for x in sorted(nums)]))
Dec. 22, 2015