A193552 Prime numbers ending in James Bond number ''007''.
4007, 6007, 9007, 10007, 12007, 13007, 16007, 24007, 36007, 45007, 61007, 64007, 78007, 82007, 88007, 90007, 94007, 97007, 103007, 108007, 121007, 123007, 135007, 138007, 142007, 145007, 151007, 156007, 157007, 162007, 169007, 171007, 174007
Offset: 1
References
- David Wells, Prime Numbers: The Most Mysterious Figures in Math. Hoboken, New Jersey: John Wiley & Sons (2005): 228.
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Programs
-
Maple
select(isprime, [1000*i+7$i=1..200])[]; # Alois P. Heinz, Feb 03 2023
-
Mathematica
Select[Range[1007, 200007, 1000], PrimeQ] (* Alonso del Arte, Mar 07 2012 *)
-
PARI
forstep(n=1007,1e6,1000,if(isprime(n),print1(n", "))) \\ Charles R Greathouse IV, Mar 07 2012
-
Python
from sympy import isprime from itertools import count, islice def agen(): yield from (t for t in count(1007, 1000) if isprime(t)) print(list(islice(agen(), 33))) # Michael S. Branicky, Feb 03 2023
Formula
Primes of the form 1000n + 7 with n >= 1.
Extensions
Corrected and extended by Charles R Greathouse IV, Jul 30 2011
Comments