fork(2) download
  1. n = input()
  2. i = 2
  3. ans = 1
  4. while i * i <= n:
  5. if n % i == 0:
  6. ans *= i
  7. while n % i == 0:
  8. n /= i
  9. i += 1
  10. if n > 1:
  11. ans *= n
  12. print ans
  13.  
Runtime error #stdin #stdout #stderr 0.02s 9016KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
EOFError: EOF when reading a line