login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Subsequence of A067841.
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)
# Soumil Mandal, Apr 04 2016
CROSSREFS
Sequence in context: A048958 A145648 A035867 * A031814 A020427 A232299
KEYWORD
nonn,easy,base
AUTHOR
Colin Barker, Mar 29 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 06:45 EDT 2024. Contains 371906 sequences. (Running on oeis4.)