OFFSET
1,1
MATHEMATICA
NextPrim[n_] := Block[{k = n + 1}, While[ ! PrimeQ[k], k++ ]; k]; a[0] = 1; a[n_] := a[n] = Block[{p = NextPrim[ a[n - 1]], q = Product[a[i], {i, 0, n - 1}]}, While[ !PrimeQ[p*q + 2], p = NextPrim[p]]; p]; Table[ Product[ a[i], {i, n}] + 2, {n, 16}] (* Robert G. Wilson v, Jan 12 2005 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Herman H. Rosenfeld (herm3(AT)pacbell.net), Dec 29 2004
EXTENSIONS
More terms from Robert G. Wilson v, Jan 12 2005
STATUS
approved