OFFSET
0,1
LINKS
Jens Kruse Andersen, Records for primes in arithmetic progressions
EXAMPLE
T(4,7)=47 because the primes 47 + r*i (0 <= i < 7) with r = primorial(4) = 2*3*5*7 = 210 are in arithmetic progression.
Triangle begins
2, 2;
2, 3, 3;
2, 5, 5, 5, 5;
2, 7, 7, 7, 7, 7, 0;
2, 13, 13, 13, 13, 13, 47, 199, 199, 199, 0;
...
MATHEMATICA
Flatten@Table[Join[Table[j=1; While[k=1; While[PrimeQ[Prime@j+ k(r=Times@@Prime@Range@n)], k++]; k<m, j++]; (p=Prime@j), {m, Prime[n+1]-1}], {If[And@@Table[PrimeQ[p+k*r], {k, 0, p-1}], p, 0]}], {n, 0, 4}] (* Giorgos Kalogeropoulos, Jan 12 2022 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Jean-Marc Rebert, Jan 11 2022
STATUS
approved