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!)
A065060 Primes p such that prime(p) - pi(p) is a prime. 2
2, 3, 7, 19, 79, 101, 113, 163, 173, 199, 223, 239, 251, 263, 311, 349, 443, 463, 577, 593, 641, 659, 743, 839, 881, 1033, 1097, 1109, 1151, 1373, 1399, 1429, 1439, 1459, 1627, 1693, 1831, 1871, 2029, 2069, 2137, 2237, 2287, 2423, 2473, 2617, 2687, 2713 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
with(numtheory): A065060:=n->`if`(isprime(n) and isprime(ithprime(n)-pi(n)), n, NULL): seq(A065060(n), n=1..10^4); # Wesley Ivan Hurt, Feb 09 2017
MATHEMATICA
Prime[ Select[ Range[500], PrimeQ[ Prime[ Prime[ # ]] - PrimePi[ Prime[ # ]]] & ]]
PROG
(PARI) { n=0; default(primelimit, 4294965247); for (m=1, 10^9, p=prime(m); if (isprime(prime(p) - primepi(p)), write("b065060.txt", n++, " ", p); if (n==1000, return)) ) } \\ Harry J. Smith, Oct 05 2009
CROSSREFS
Cf. A000040 (primes), A000720 (pi), A065046 (prime(n) - pi(n) is a prime).
Sequence in context: A336296 A224929 A110887 * A164625 A294148 A079804
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Nov 06 2001
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 July 8 02:28 EDT 2024. Contains 374149 sequences. (Running on oeis4.)