OFFSET
1,1
COMMENTS
Numbers that are less than any later number are recorded in A290488.
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..261
Robert G. Wilson v, Table of n, a(n) for n = 0..290, or 0 if no such value is known.
EXAMPLE
a(1) is 2 since 3 - 2 = 1;
a(2) is 11 since 13 - 11 = 2;
a(3) is 7 since 10 - 7 = 3;
a(4) is 67 since 71 - 67 = 4; etc.
MATHEMATICA
nxt[n_] := Block[{k = n +1}, While[ !PrimeQ[k] && !PrimeQ[k/2], k++]; k]; p = 2; q = 3; t[_] = 0; While[p < 215000, d = q - p; If[ t[d] == 0, t[d] = p]; p = q; q = nxt@ q]; t@# & /@ Range@ 47
CROSSREFS
KEYWORD
nonn
AUTHOR
Bobby Jacobs and Robert G. Wilson v, Aug 06 2017
STATUS
approved