Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #10 Sep 08 2022 08:46:05
%S 1,5,6,11,12,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,
%T 36,41,42,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,
%U 67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85
%N Numbers n such that sum of all primes <=n is not prime.
%H Vincenzo Librandi, <a href="/A228357/b228357.txt">Table of n, a(n) for n = 1..1000</a>
%e 6 is in the sequence since 2+3+5=10 is not prime.
%t t = {}; s = 0; Do[If [PrimeQ[n], s+ = n]; If[!PrimeQ[s], AppendTo[t, n]], {n, 120}]; t
%t Position[Accumulate[Table[If[PrimeQ[n],n,0],{n,100}]],_?(!PrimeQ[ #]&)]// Flatten//Rest (* _Harvey P. Dale_, Jul 02 2018 *)
%o (Magma) [n: n in [1..120] | not IsPrime(s) where s is &+PrimesUpTo(n)];
%Y Cf. A034387, A228102.
%K nonn,easy
%O 1,2
%A _Vincenzo Librandi_, Aug 21 2013