OFFSET
1,1
FORMULA
a(n) ~ n log n. - Charles R Greathouse IV, May 29 2014
EXAMPLE
5 is in this sequence because 5 is prime and neither 5 - 4 = 1 nor 5 + 4 = 9 is prime.
MATHEMATICA
Select[Prime[Range[125]], Not[PrimeQ[# - 4]] && Not[PrimeQ[# + 4]] &] (* Alonso del Arte, May 30 2014 *)
PROG
(Magma) [p: p in PrimesUpTo(620) | not IsPrime(p-4) and not IsPrime(p+4)];
(PARI) select(n->!isprime(n-4) && !isprime(n+4), primes(200)) \\ Charles R Greathouse IV, May 29 2014
(Sage) [p for p in primes(5, 700) if not is_prime(p-4) and not is_prime(p+4)] # Bruno Berselli, Jun 10 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, May 28 2014
STATUS
approved