解题思路:
注意事项:
参考代码:
N = int(input())
l = []
m = []
for i in range(2,N//2+1):
if N % i == 0:
l.append(i)
for i in l:
for j in range(2,i//2+1):
if i == 2:
m.append(i)
break
if i % j == 0:
break
else:
m.append(i)
for i in m:
print(i,end=" ")
0.0分
0 人评分