OFFSET
1,2
COMMENTS
Records in A290496.
The gap of 57 between 31397 and 31454 is due to the record prime gap between 31397 and 31469 being almost exactly twice the record prime gap between 15683 and 15727.
EXAMPLE
a(3) = 6 because the next number that is a prime or twice a prime after 47 is 53, and that is a record gap of size 6.
MATHEMATICA
With[{nn = 10^7}, Union@ FoldList[Max, Differences@ #] &@ Union@ Flatten@ {#, 2 TakeWhile[#, # < Prime[nn]/2 &]} &@ Prime@ Range@ nn] (* Michael De Vlieger, Aug 06 2017 *)
CROSSREFS
KEYWORD
more,nonn
AUTHOR
Bobby Jacobs, Aug 05 2017
EXTENSIONS
a(36)-a(40) from Giovanni Resta, Aug 06 2017
STATUS
approved