OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MAPLE
B:= select(numtheory:-bigomega=2, [$1..2000]):
B[select(t ->B[t+1]-B[t]=4, [$1..nops(B)-1])]; # Robert Israel, Dec 21 2017
MATHEMATICA
Select[Partition[Select[Range[1250], PrimeOmega@ # == 2 &], 2, 1], Differences@ # == {4} &][[All, 1]] (* Michael De Vlieger, Dec 20 2017 *)
SequencePosition[Table[If[PrimeOmega[n]==2, 1, 0], {n, 1300}], {1, 0, 0, 0, 1}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 19 2020 *)
PROG
(PARI) is(n)=bigomega(n)==2 && bigomega(n+4)==2 && bigomega(n+1)!=2 && bigomega(n+2)!=2 && bigomega(n+3)!=2 \\ Charles R Greathouse IV, Nov 02 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 02 2015
STATUS
approved
