Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Numbers Factory by PawlakBartosz43
def checkio(number):
i = 9
x = []
while(i >= 2):
if(number%i == 0):
number = number / i
x.append(i)
i = 9
else:
i = i - 1
if(number >= 10):
return 0
y = []
y = sorted(x)
i = len(y) - 1
m = 0
liczba = 0
while(i >= 0):
liczba += y[m] * 10**i
m = m + 1
i -= 1
return(liczba)
Jan. 3, 2017