2008年(47)
分类:
2008-11-14 14:34:35
The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime.
There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97.
How many circular primes are there below one million?
从题意中知道,这个数一定是有奇数数字组成,getNum35(odds, n)生成n位数的全部有奇数组成的数字,我们用a来保存是否已经计算了该组数字