OFFSET
1,1
EXAMPLE
a(4) = 18 because the next prime-indexed prime after 41 is 59, and that is a record gap of size 18.
MATHEMATICA
Union@ Rest@ FoldList[Max, 0, Differences@ Array[Prime@ Prime@ # &, 10^6]] (* Michael De Vlieger, Dec 25 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Bobby Jacobs, Dec 25 2016
STATUS
approved