Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First factor with 56789 solution in Clear category for Numbers Factory by wyf.141060
def checkio(number):
factor_num = list(factors(number))
return sum([n*10**index for index, n in enumerate(sorted(factor_num, reverse=True))]) if max(factor_num) < 10 else 0
def factors(number):
while True:
for num in [5, 7, 9, 8, 6]:#the order of 6 can ensure the min result
if not number % num:
yield num
number /= num
break
else:
if not number == 1:
yield int(number)
return
Dec. 10, 2018
Comments: