OFFSET
1,2
COMMENTS
Except for the first term, same as A036012. - David Wasserman, Dec 22 2004
EXAMPLE
1+1 =2, 1*2+1=3, 1*2*2 +1=5 etc. are primes.
MATHEMATICA
a[1] = p = 1; a[n_] := a[n] = Catch[For[k = 2, True, k++, If[PrimeQ[p*k + 1], p = p*k; Throw[k]]]]; Table[a[n], {n, 1, 82}] (* Jean-François Alcover, May 14 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, May 31 2003
EXTENSIONS
More terms from David Wasserman, Dec 22 2004
STATUS
approved