OFFSET
3,1
LINKS
Tyler Busby, Table of n, a(n) for n = 3..83 (terms 3..80 from Sean A. Irvine)
Romeo Mestrovic, Euclid's theorem on the infinitude of primes: a historical survey of its proofs (300 BC--2012) and another new proof, arXiv preprint arXiv:1202.3670 [math.HO], 2012-2023. - From N. J. A. Sloane, Jun 13 2012
EXAMPLE
For n=3, 3rd primorial=30, 4th prime=7, difference=23, so a(3)=23.
MATHEMATICA
Module[{nn=30, pmrl}, pmrl=FoldList[Times, Prime[Range[nn]]]; FactorInteger[ #][[-1, 1]]&/@(Drop[#[[1]]-#[[2]]&/@Thread[ {pmrl, Prime[ Range[ 2, nn+1]]}], 2])] (* Harvey P. Dale, Dec 30 2021 *)
PROG
(PARI) a(n) = vecmax(factor(prod(i=1, n, prime(i)) - prime(n+1))[, 1]); \\ Michel Marcus, Aug 29 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 29 2001
EXTENSIONS
More terms from Michel Marcus, Aug 29 2019
STATUS
approved