Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Numbers Factory by PiotrStachowiak
def checkio(number):
lista=[]
for i in range(9,1,-1):
while number%i==0:
number=number/i
lista.append(i)
if number!=1:
return 0
lista.sort()
wynik=0
for i in range(0,len(lista)):
wynik=wynik+(10**(len(lista)-i-1))*lista[i]
return wynik
Nov. 25, 2016