OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
79 is single prime, but not Chen prime, since 79 -2 = 77 = 7*11 is composite, and 79 + 2 = 81 = 3^4 is neither prime nor semiprime.
MAPLE
isA001358 := proc(n) numtheory[bigomega](n) = 2 ; end proc: isA109611 := proc(n) if isprime(n) then isprime(n+2) or isA001358(n+2) ; else false; end if; end proc: isA007510 := proc(n) if isprime(n) then not isprime(n-2) and not isprime(n+2) ; else false; end if ; end proc: isA117244 := proc(n) isA007510(n) and not isA109611(n) ; end proc: for n from 1 to 4000 do if isA117244(n) then printf("%d, ", n) ; fi; end do ; # R. J. Mathar, Dec 09 2009
MATHEMATICA
Select[Range[1500], PrimeQ[#] && !PrimeQ[#-2] && PrimeOmega[#+2] > 2 &] (* Amiram Eldar, Oct 19 2021 *)
PROG
(PARI) isok(p) = isprime(p) && !isprime(p-2) && !isprime(p+2) && (bigomega(p+2) > 2); \\ Michel Marcus, Oct 19 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Jani Melik, Apr 22 2006
EXTENSIONS
Terms beyond 397 from R. J. Mathar, Dec 09 2009
Offset corrected by Amiram Eldar, Oct 19 2021
STATUS
approved