OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
FORMULA
a(n) = Sum_{x= 1st odd nonprime..n-th odd nonprime}x.
MATHEMATICA
upto=200; Accumulate[Complement[Range[1, upto, 2], Prime[Range[2, PrimePi[upto]]]]] (* Harvey P. Dale, Mar 19 2011 *)
PROG
(PARI) lista(nn) = {my(s = 0); forstep (n=1, nn, 2, if (!isprime(n), s+= n; print1(s, ", ")); ); } \\ Michel Marcus, Aug 01 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Aug 02 2009, Oct 10 2009
EXTENSIONS
150 replaced with 250 by R. J. Mathar, Aug 06 2009
STATUS
approved