Problem 10: Summation of primes
摘要:
def primeslist(max): ''' 求max值以内的质数序列 ''' a = [True]*(max+1) a[0],a[1]=False,False for index in range(2, len(a)): if a[index]==True: for i in range(index+i... 阅读全文
posted @ 2018-04-27 11:16 中年小Q 阅读(113) 评论(0) 推荐(0) 编辑