login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A158713
Primes p such that p1=Ceiling[p/2]+p is prime and p2=Ceiling[p1/2]+p is prime.
6
7, 47, 127, 167, 239, 439, 479, 607, 967, 1319, 1559, 1999, 2239, 2447, 2719, 3359, 4007, 4327, 4967, 5039, 5279, 5407, 5879, 6007, 6287, 7127, 7607, 8167, 8447, 8527, 8999, 9127, 9439, 9967, 10487, 11087, 11287, 11399, 11527, 11719, 11927, 11959, 12479
OFFSET
1,1
MATHEMATICA
cpQ[n_]:=Module[{p1=Ceiling[n/2]+n}, AllTrue[{p1, Ceiling[p1/2]+n}, PrimeQ]]; Select[Prime[Range[2000]], cpQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 29 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected and incorrect Mathematica program deleted by Harvey P. Dale, May 29 2017
STATUS
approved