OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(n)
if n::even then numtheory:-bigomega(n+1) <> 2 and numtheory:-bigomega(n-1) <> 2
elif n mod 4 = 1 then not isprime(n) and not isprime((n+1)/2)
else not isprime(n) and not isprime((n-1)/2)
fi
end proc:
select(filter, [$4..200]); # Robert Israel, Apr 20 2021
MATHEMATICA
bo[n_] := Plus @@ Last /@ FactorInteger[n]; Select[Range[2, 200], ! (PrimeQ[ # ] || bo[ # - 1] == 2 || bo[ # + 1] == 2) &] (* Ray Chandler, Aug 27 2005 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, Aug 20 2005
EXTENSIONS
Corrected and extended by Ray Chandler, Aug 27 2005
STATUS
approved