OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
Triangle starts:
4;
8, 9;
14, 15, 16;
24, 25, 26, 27;
32, 33, 34, 35, 36;
90, 91, 92, 93, 94, 95; - Robert Israel, Jan 17 2023
First occurrence of 1 consecutive composite gives 4, first occurrence of 2 consecutive composites gives 8 and 9, the first subsequent, disjoint occurrence of 3 consecutive composites gives 14, 15 and 16, etc.
MAPLE
R:= NULL: m:= 1;
p:= 3:
while m < 30 do
q:= nextprime(p);
g:= q-p-1;
if g >= m then
R:= R, $(p+1)..(p+m);
p:= p+m;
m:= m+1;
else
p:= q
fi;
od:
R; # Robert Israel, Jan 17 2023
CROSSREFS
KEYWORD
AUTHOR
Jason Earls, Mar 25 2001
EXTENSIONS
Name changed by Robert Israel, Jan 17 2023
STATUS
approved