题解 | #KiKi求质数个数#
KiKi求质数个数
http://www.nowcoder.com/practice/d3a404ee0f8d41f98bf4707035d91086
a = 0
for i in range(100, 1001):
for j in range(2, i):
if (i % j) ==0:
break
else:
a += 1
print(a)
KiKi求质数个数
http://www.nowcoder.com/practice/d3a404ee0f8d41f98bf4707035d91086
a = 0
for i in range(100, 1001):
for j in range(2, i):
if (i % j) ==0:
break
else:
a += 1
print(a)
相关推荐