解题思路:
def sushu(n):
if n==2:
return 2
for i in range(2, n):
if n % i == 0:
break
else:
return n
n=int(input())
ls=[]
for j in range(2,n):
ls.append(sushu(j))
for k in ls:
if k!=None:
print(k,end=' ')
0.0分
0 人评分