OFFSET
1,1
EXAMPLE
MATHEMATICA
s[1] = 1; s[n_] := s[n] = s[n - 1] + Sum[If[CompositeQ[s[k]], 0, s[k]], {k, 1, n - 1}]; Select[Range[2000], PrimeQ[s[#]] &] (* Amiram Eldar, Jul 21 2022 *)
PROG
(PARI) lista(nn) = my(last=1, s = 1, list = List()); for (n=2, nn, last += s; if (isprime(last), s += last; listput(list, n)); ); Vec(list);
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Jul 21 2022
STATUS
approved