OFFSET
1,2
COMMENTS
Every lesser of twin primes (A001359) is in the sequence. Every Fermat prime reduced by 1 and every Mersenne prime are in the sequence.
EXAMPLE
125 is in the sequence, since omega(125) = 1 and omega(125+2) = 1;
127 is in the sequence, since omega(127) = 1 and omega(127+1) = 1.
MATHEMATICA
Select[Range[3000], PrimeNu[#]<=1&&(PrimeNu[#+1]==1||PrimeNu[#+2]==1)&] (* Peter J. C. Moses, Sep 03 2017 *)
PROG
(PARI) isok(n) = (omega(n) <= 1) && ((omega(n+1) == 1) || (omega(n+2)==1)); \\ Michel Marcus, Sep 04 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Sep 03 2017
EXTENSIONS
More terms from R. J. Mathar, Sep 03 2017
STATUS
approved