OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
37 is prime, but it is not a twin prime (neither 35 nor 39 are prime), it is not a Sophie Germain prime (2*37 + 1 = 75 is not prime), and it is not a safe prime ((37 - 1)/2 = 18 is not prime). So 37 is in the sequence.
MAPLE
select(p->isprime(p) and not isprime(p-2) and not isprime(p+2) and not isprime(2*p+1) and not isprime((p-1)/2), [$1..1000]); # Muniru A Asiru, Sep 27 2018
MATHEMATICA
Select[Prime@ Range@ PrimePi[10^3], NoneTrue[{# - 2, # + 2, 2 # + 1, (# - 1)/2}, PrimeQ] &] (* Michael De Vlieger, Sep 26 2018 *)
PROG
(PARI) isok(p) = isprime(p) && !isprime(p-2) && !isprime(p+2) && !isprime(2*p+1) && !isprime((p-1)/2); \\ Michel Marcus, Sep 26 2018
(GAP) Filtered([1..1000], p->IsPrime(p) and not IsPrime(p-2) and not IsPrime(p+2) and not IsPrime(2*p+1) and not IsPrime((p-1)/2)); # Muniru A Asiru, Sep 27 2018
(Magma) [p: p in PrimesUpTo(1000) | not IsPrime(p-2) and not IsPrime(p+2)and not IsPrime(2*p+1)and not IsPrime((p-1) div 2)]; // Vincenzo Librandi, Ocy 25 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Steiner, Sep 25 2018
STATUS
approved