OFFSET
1,2
COMMENTS
These are the distances mentioned in A023186.
EXAMPLE
The nearest prime to 23 is 4 units away, larger than any previous prime, so 4 is in the sequence.
MATHEMATICA
t={}; max=p=0; q=2; Do[r=NextPrime[q]; If[(min=Min[q-p, r-q])>max, max=min; AppendTo[t, max]]; p=q; q=r, {n, 828000}]; t (* Jayanta Basu, May 18 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Jud McCranie, Jun 16 2000
More terms from T. D. Noe, Jul 21 2006
More terms from Dmitry Petukhov, Oct 03 2015
STATUS
approved