n = input() i = 2 ans = 1 while i * i <= n: if n % i == 0: ans *= i while n % i == 0: n /= i i += 1 if n > 1: ans *= n print ans
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 1, in <module> EOFError: EOF when reading a line