OFFSET
1,1
LINKS
Antonín Čejchan, Michal Křížek, and Lawrence Somer, On Remarkable Properties of Primes Near Factorials and Primorials, Journal of Integer Sequences, Vol. 25 (2022), Article 22.1.4.
MATHEMATICA
NextPrime[n_Integer] := Block[{k}, k = n + 1; While[ !PrimeQ[k], k++ ]; k]; Fortunate[n_Integer] := Block[{p = Product[Prime[i], {i, 1, n}] + 1, q}, q = NextPrime[p]; q - p + 1]; Table[ PrimePi[ Fortunate[n]], {n, 70}] (* Robert G. Wilson v, Sep 04 2004 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 30 2004
EXTENSIONS
More terms from Robert G. Wilson v, Sep 04 2004
Better definition from R. J. Mathar, Oct 28 2007
STATUS
approved