题解 | #质数因子#
质数因子
https://www.nowcoder.com/practice/196534628ca6490ebce2e336b47b3607
def deal(y):
for z in range(2, y + 1):
if y % z == 0:
print(z,end=" ")
x = y / z
if x != 1:
deal(int(x))
else:
break
break
while True:
try:
i = int(input())
deal(i)
except:
break