解题思路:
注意事项:
参考代码:
n = int(input())
k = 2
list_prime = []
while n != 1:
if n % k == 0:
n /= k
list_prime.append(2)
for i in range(2, k):
if k % i != 0:
list_prime.append(k)
else:
k += 1
list_prime.sort()
fina = set(list_prime)
for i in fina:
print(i, end=" ")
0.0分
0 人评分