OFFSET
1,2
EXAMPLE
n=4, d=8: there are five difference patterns: [8], [6,2], [2,6], [2,4,2], [2,2,4]. The last pattern is singular with prime 4-tuple {p=3,5,7,11=q}.
MATHEMATICA
t[x_] := Table[Length[FactorInteger[x+j]], {j, 0, d}]; p[x_] := Flatten[Position[Table[PrimeQ[x+2*j], {j, 0, d/2}], True]]; dp[x_] := Delete[RotateLeft[p[x]]-p[x], -1]; k=0; d=12; {n1=2, n2=2000, h0=PrimePi[n1], h=PrimePi[n2]}; t1={}; Do[s=Prime[n]; If[PrimeQ[s + d], k=k+1; Print[{k, s, pt=2*dp[s]}]; t1=Union[t1, {2*dp[s]}], 1], {n, h0, h}]; {d, n1, n2, Length[t1], t1} (* program for d=12; partition list is enlargable if t1={} is replaced with already obtained set *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Labos Elemer, Jan 24 2003
EXTENSIONS
a(14)-a(17) and a(19) from David A. Corneth, Aug 30 2019
a(18) from Jinyuan Wang, Feb 16 2021
STATUS
approved