fork download
  1. def revFact(n):
  2. if(n<1):
  3. return False
  4. k=1
  5. while(n>1):
  6. k+=1
  7. if(n%k)!=0:
  8. return False
  9. n=n//k
  10. return k
  11. revFact(1000)
Success #stdin #stdout 0.13s 14180KB
stdin
Standard input is empty
stdout
Standard output is empty