def primeFactors(n): global factors if(n==1): return elif((n%factors)== 0): print(factors) primeFactors(n//factors) else: factors+=1 primeFactors(n) factors = 2