OFFSET
1,2
COMMENTS
The sorted version is A373402.
For this sequence, we define an antirun to be an interval of positions at which consecutive primes differ by at least 3.
LINKS
EXAMPLE
The maximal antiruns of prime numbers > 3 begin:
5
7 11
13 17
19 23 29
31 37 41
43 47 53 59
61 67 71
73 79 83 89 97 101
103 107
109 113 127 131 137
139 149
151 157 163 167 173 179
The a(n)-th rows are:
5
7 11
19 23 29
43 47 53 59
109 113 127 131 137
73 79 83 89 97 101
2269 2273 2281 2287 2293 2297 2309
1093 1097 1103 1109 1117 1123 1129 1151
463 467 479 487 491 499 503 509 521
For example, (19, 23, 29) is the first maximal antirun of length 3, so a(3) = 4.
MATHEMATICA
t=Length/@Split[Select[Range[4, 100000], PrimeQ], #1+2!=#2&]//Most;
spna[y_]:=Max@@Select[Range[Length[y]], SubsetQ[t, Range[#]]&];
Table[Position[t, k][[1, 1]], {k, spna[t]}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jun 09 2024
STATUS
approved