OFFSET
1,1
LINKS
Marius A. Burtea, Table of n, a(n) for n = 1..5673
EXAMPLE
For p=3, 4*3+3=15 (not prime) and 4*3-3=9 (not prime), so the prime p=3 is in the sequence.
For p=7, 4*7+3=31 (prime), so the prime p=7 is not in the sequence.
MATHEMATICA
lst={}; Do[p=Prime[n]; If[ !PrimeQ[2*p+(p-1)+(p-2)]&&!PrimeQ[2*p+(p+1)+(p+2)], AppendTo[lst, p]], {n, 3*5!}]; lst
Select[Prime[Range[150]], NoneTrue[4#+{3, -3}, PrimeQ]&] (* Harvey P. Dale, Aug 01 2022 *)
PROG
(PARI) isok(p) = isprime(p) && !isprime(4*p+3) && !isprime(4*p-3); \\ Michel Marcus, Oct 12 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 22 2009
EXTENSIONS
Edited by R. J. Mathar, Jul 25 2009, Jul 27 2009
STATUS
approved