Files
CodeObject/zeta_python/completed/11653.py
2020-09-24 21:48:57 +09:00

13 lines
164 B
Python

N = int(input())
p = 2
while N % p == 0:
N //= p
print(p)
p += 1
while N != 1:
if N % p == 0:
N //= p
print(p)
else:
p += 2