OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..700
MATHEMATICA
a[1] = 2; a[n_] := a[n] = Module[{k = a[n - 1], r = Product[a[i], {i, 1, n - 1}]}, While[! PrimeQ[k*r + 1], k++]; k]; Array[a, 60] (* Amiram Eldar, Jan 19 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Dmitry Kamenetsky, Mar 02 2010
EXTENSIONS
More terms from Amiram Eldar, Jan 19 2023
STATUS
approved