OFFSET
1,1
COMMENTS
The corresponding record values of the Fortunate numbers are 3, 5, 7, 13, 23, 37, 61, 67, 71, 107, 109, 151, 197, 233, 643, 751, 773, 883, 1381, 1423, 2087, 2243, 2357, 3559, 3739, 5323, 5689, 6271, 7187, 7309, 8713, 11069, 11411, 19699, 20249, 25621, 28351, 28817, 32443, 39769, 59981, 78059, 82339, 86293, 89657, 90127, 101021, 129589, ...
Primes that are in both of these 2 sequences: 3, 5, 7, 23, 61, ...
EXAMPLE
23 is in the sequence since the prime next to 23#+1 is 23#+37 and 37 is larger than all the Fortunate numbers before it (3, 5, 7, 13, 23, 17, 19, 23).
MATHEMATICA
primorial[n_] := Times @@ Prime[Range[n]]; gap[n_] := NextPrime[n + 1] - n; fort[n_] := gap[primorial[n]]; fm=0; s={}; Do[f = fort[n]; If[f > fm, AppendTo[s, Prime[n]]; fm = f], {n, 1, 30}]; s
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Jul 29 2018
STATUS
approved