login
A271044
Primes p such that p and prime(p) end with the same two digits.
4
823, 1033, 1223, 1723, 1811, 2027, 2833, 3079, 3389, 3461, 3659, 4691, 5021, 5231, 5501, 5581, 5711, 5851, 6143, 6151, 6581, 7043, 7151, 7253, 7411, 7759, 7817, 8429, 8599, 9551, 10613, 10733, 10789, 11069, 11161, 11701, 12011, 12637, 12941, 13381, 13619
OFFSET
1,1
COMMENTS
Subsequence of A067838.
LINKS
EXAMPLE
823 is in the sequence because 823 % 100 = 23, prime(823) = 6323 and 6323 % 100 = 23.
MATHEMATICA
Select[Prime@ Range@ 1620, Mod[#, 100] == Mod[Prime@ #, 100] &] (* Michael De Vlieger, Mar 29 2016 *)
PROG
(PARI) L=List(); forprime(p=2, 20000, if(p%100==prime(p)%100, listput(L, p))); Vec(L)
(Python)
from sympy import isprime, prime
for p in range(2, 20000):
if(prime(p)%100==p%100 and isprime(p)):print(p)
#, Soumil Mandal, Apr 06 2016
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Colin Barker, Mar 29 2016
STATUS
approved