Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Numbers Factory by testarossa
def checkio(data):
nums = []
while data > 9:
found = False
for i in range(9, 1, -1):
if data % i == 0:
found = True
nums.append(i)
data = data // i
break
if found is False:
return 0
nums.append(data)
rt = ""
for num in sorted(nums):
rt += str(num)
return int(rt)
Nov. 19, 2016