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”).

A106022
Primes p such that 2*p +/- 3 and 8*p +/- 3 are all primes.
1
5, 7, 13, 127, 2477, 2857, 3163, 3793, 9127, 11173, 11437, 12347, 22567, 23227, 27847, 28573, 28867, 30703, 36793, 49937, 50147, 57373, 67523, 71483, 81353, 82657, 83077, 85303, 92413, 108557, 110083, 123997, 126223, 132383, 141917
OFFSET
1,1
LINKS
MATHEMATICA
Select[Prime[Range[4000]], PrimeQ[8#+3]&&PrimeQ[8#-3]&&PrimeQ[2#+3]&&PrimeQ[2#-3]&]
Select[Prime[Range[20000]], AllTrue[Flatten[{2#+{3, -3}, 8#+{3, -3}}], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jun 12 2015 *)
PROG
(Magma) [p: p in PrimesUpTo(1000000)| IsPrime(2*p+3) and IsPrime(2*p-3)and IsPrime(8*p-3) and IsPrime(8*p+3)] // Vincenzo Librandi, Nov 13 2010
CROSSREFS
Sequence in context: A356847 A342506 A158892 * A279795 A050085 A314331
KEYWORD
nonn
AUTHOR
Zak Seidov, May 05 2005
STATUS
approved