|
|
A271045
|
|
Primes p such that p and prime(p) end with the same three digits.
|
|
4
|
|
|
1723, 7817, 9551, 12637, 23071, 29201, 29287, 30059, 38653, 43067, 53617, 56671, 57727, 57809, 60811, 73351, 74201, 78307, 79423, 87403, 89413, 91771, 107647, 108301, 113039, 115259, 116579, 118543, 133271, 133649, 138283, 140317, 154111, 155569, 160681
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
1723 is in the sequence because 1723 % 1000 = 723, prime(1723) = 14723 and 14723 % 1000 = 723.
|
|
MATHEMATICA
|
Select[Prime@ Range@ 15000, Mod[#, 1000] == Mod[Prime@ #, 1000] &] (* Michael De Vlieger, Mar 29 2016 *)
|
|
PROG
|
(PARI) L=List(); forprime(p=2, 300000, if(p%1000==prime(p)%1000, listput(L, p))); Vec(L)
(Python)
from sympy import isprime, prime
for p in range(2, 100000):
if(prime(p)%1000==p%1000 and isprime(p)):print(p)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|