题解 | #KiKi求质数个数#
KiKi求质数个数
http://www.nowcoder.com/practice/d3a404ee0f8d41f98bf4707035d91086
count = 0
for i in range(100,1000):
#使用flag作为标记
flag = 1
for j in range(2,int(i**0.5)+1):
if i % j == 0:
flag = 0
break
if flag == 1:
count += 1
print(count)