def reverse_fact(input): start = 1 while input != 1: start += 1 if input % start != 0 : return 0 input /= start print(input) return start
- def reverse_fact(input):
prod = 1i = 1while True:if input % i == 0:prod *= iif prod == input:return ielse:- start = 1
- while input != 1:
- start += 1
- if input % start != 0 :
- return 0
i += 1- input /= start
- print(input)
- return start