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!)
A236119 Primes p with prime(p) - p - 1 and prime(p) - p + 1 both prime. 11
5, 17, 23, 41, 71, 83, 173, 293, 337, 353, 563, 571, 719, 811, 911, 953, 1201, 1483, 1579, 1877, 2081, 2089, 2309, 2579, 2749, 2803, 3329, 3343, 3511, 3691, 3779, 3851, 3881, 3907, 4021, 4049, 4093, 4657, 4813, 5051, 5179, 5333, 5519, 5591, 6053, 6547, 6841, 7151, 7723, 8209 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
By the conjecture in A236097, this sequence should have infinitely many terms.
LINKS
Z.-W. Sun, Problems on combinatorial properties of primes, arXiv:1402.6641, 2014
EXAMPLE
a(1) = 5 since neither prime(2) - 2 - 1 = 0 nor prime(3) - 3 - 1 = 1 is prime, but prime(5) - 5 - 1 = 5 and prime(5) - 5 + 1 = 7 are both prime.
MATHEMATICA
p[n_]:=PrimeQ[Prime[n]-n-1]&&PrimeQ[Prime[n]-n+1]
n=0; Do[If[p[Prime[k]], n=n+1; Print[n, " ", Prime[k]]], {k, 1, 1100}]
PROG
(PARI) s=[]; forprime(p=2, 10000, if(isprime(prime(p)-p-1) && isprime(prime(p)-p+1), s=concat(s, p))); s \\ Colin Barker, Jan 19 2014
CROSSREFS
Sequence in context: A019410 A133423 A154632 * A141275 A303193 A145043
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jan 19 2014
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 25 12:15 EDT 2024. Contains 371969 sequences. (Running on oeis4.)