OFFSET
1,1
COMMENTS
Prime gaps are differences between adjacent prime numbers.
FORMULA
EXAMPLE
The prime gaps split into the following weakly increasing subsequences: (1,2,2,4), (2,4), (2,4,6), (2,6), (4), (2,4,6,6), (2,6), (4), (2,6), (4,6,8), (4), (2,4), (2,4,14), ...
MATHEMATICA
Length/@Split[Differences[Array[Prime, 100]], #1<=#2&]//Most
CROSSREFS
Prime gaps are A001223.
Ones correspond to strong prime quartets A054804.
Weakly increasing runs of compositions in standard order are A124766.
First differences of A258026 (with zero prepended).
The version for the Kolakoski sequence is A332875.
The weakly decreasing version is A333212.
The unequal version is A333216.
Positions of weak ascents in prime gaps are A333230.
The strictly decreasing version is A333252.
The strictly increasing version is A333253.
The equal version is A333254.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Mar 14 2020
STATUS
approved