s=[]
for a in range(101,201): mark=True for b in range(2,a): if a%b==0: mark=False break if mark==True: s.append(a)print sprint len(s)本文共 191 字,大约阅读时间需要 1 分钟。
s=[]
for a in range(101,201): mark=True for b in range(2,a): if a%b==0: mark=False break if mark==True: s.append(a)print sprint len(s)转载于:https://www.cnblogs.com/jietingting/p/7076870.html