摘要: Problem7: By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10001st prime number?问题7: 通过列出前六个素数:2,3,5,7,11,13,我们可以知道第6个素数为13。 求第10001个素数?方法一: 一个一个数判断是否为素数,知道第n个素数:方法一def f(n): result=[2] i=3 while len(result)<n: for j in result: if i% 阅读全文
posted @ 2011-05-11 15:42 class 阅读(703) 评论(0) 推荐(0) 编辑