OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
6 is in the sequence since 2+3+5=10 is not prime.
MATHEMATICA
t = {}; s = 0; Do[If [PrimeQ[n], s+ = n]; If[!PrimeQ[s], AppendTo[t, n]], {n, 120}]; t
Position[Accumulate[Table[If[PrimeQ[n], n, 0], {n, 100}]], _?(!PrimeQ[ #]&)]// Flatten//Rest (* Harvey P. Dale, Jul 02 2018 *)
PROG
(Magma) [n: n in [1..120] | not IsPrime(s) where s is &+PrimesUpTo(n)];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Aug 21 2013
STATUS
approved