OFFSET
0,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..576
MATHEMATICA
a[0] = 2; a[n_] := a[n] = Module[{k = 2*a[n - 1] - 2}, While[! PrimeQ[k + 1], k += (a[n - 1] - 1)]; k + 1]; Array[a, 25, 0] (* Amiram Eldar, Jan 19 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Nov 02 2000
STATUS
approved