题解 | #质数因子#
质数因子
http://www.nowcoder.com/practice/196534628ca6490ebce2e336b47b3607
import math
while True:
try:
y=[]
n=int(input())
i=2
p=n
while i < math.sqrt(n):
while p%i == 0:
y.append(i)
p=p/i
i=i+1
for l in y:
print(l,end=' ')
except:
break