标签:AC dex range 开始 keyword 判断 nts print key
p
=
[i
for
i
in
range
(
2
,
100
)]
#建立2-99的列表
for
i
in
range
(
3
,
100
):
#1和2都不用判断,从3开始
for
j
in
range
(
2
, i):
if
i
%
j
=
=
0
:
p.remove(i)
break
print
(p)
标签:AC dex range 开始 keyword 判断 nts print key
原文地址:https://www.cnblogs.com/jackzz/p/9125546.html