OFFSET
1,1
EXAMPLE
36 is in the sequence since 36 = 17+19 = 1+35.
120 is in the sequence since 120 = 59+61 = 1+119.
MATHEMATICA
Select[12 * Range[700], And @@ PrimeQ[#/2 + {-1, 1}] && PrimeOmega[# - 1] == 2 &] (* Amiram Eldar, Jan 02 2022 *)
PROG
(Python)
from sympy import isprime, factorint
def ok(n): return n%2 == 0 and isprime(n//2-1) and isprime(n//2+1) and sum(factorint(n-1).values()) == 2
print([k for k in range(8005) if ok(k)]) # Michael S. Branicky, Jan 02 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jan 01 2022
STATUS
approved