OFFSET
3,1
LINKS
Tyler Busby, Table of n, a(n) for n = 3..83 (terms 3..40 from Michel Marcus, terms 41..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. - N. J. A. Sloane, Jun 13 2012
EXAMPLE
For n=3, 3rd primorial=30, prime(4)=7, difference=23, so a(3)=23.
MATHEMATICA
Map[FactorInteger[Times @@ #1 - #2][[1, 1, 1]] & @@ Reverse@ TakeDrop[#, -1] &, Drop[#, 3] &@ FoldList[Flatten@ Append[{#1}, #2] &, Prime@ Range@ 25]] (* Michael De Vlieger, Jul 16 2017 *)
PROG
(PARI) a(n) = vecmin(factor(prod(k=1, n, prime(k)) - prime(n+1))[, 1]); \\ Michel Marcus, Jul 16 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 29 2001
STATUS
approved