OFFSET
1,4
MATHEMATICA
a[1] = 1; a[n_] := a[n] = For[an = a[n-1], True, an++, If[AllTrue[ac = Rest @ Accumulate[Append[Array[a, n-1], an]], PrimeQ], Return[an]]]; Array[a, 100] (* Jean-François Alcover, Feb 17 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 25 2002
EXTENSIONS
More terms from David Wasserman, Jan 20 2005
STATUS
approved