OFFSET
0,3
COMMENTS
Do the k-th differences of the primes contain a zero for all k > 1?
LINKS
Lucas A. Brown, Python program.
FORMULA
EXAMPLE
The third differences of the primes begin:
-1, 2, -4, 4, -4, 4, 0, -6, 8, ...
so a(3) = 7.
MATHEMATICA
nn=100000;
u=Table[Differences[Select[Range[nn], PrimeQ], k], {k, 2, 16}];
mnrm[s_]:=If[Min@@s==1, mnrm[DeleteCases[s-1, 0]]+1, 0];
m=Table[Position[u[[k]], 0][[1, 1]], {k, mnrm[Union[First/@Position[u, 0]]]}]
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Gus Wiseman, Oct 14 2024
EXTENSIONS
a(17)-a(32) from Pontus von Brömssen, Oct 17 2024
a(33)-a(35) from Lucas A. Brown, Nov 03 2024
STATUS
approved