login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A101203 a(n) = sum of nonprimes <= n. 6
0, 1, 1, 1, 5, 5, 11, 11, 19, 28, 38, 38, 50, 50, 64, 79, 95, 95, 113, 113, 133, 154, 176, 176, 200, 225, 251, 278, 306, 306, 336, 336, 368, 401, 435, 470, 506, 506, 544, 583, 623, 623, 665, 665, 709, 754, 800, 800, 848, 897, 947, 998, 1050, 1050, 1104, 1159, 1215 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
FORMULA
a(n) = A000217(n) - A034387(n) = A101256(n) + 1.
MATHEMATICA
Accumulate[Table[If[PrimeQ[n], 0, n], {n, 0, 60}]] (* Harvey P. Dale, Oct 02 2020 *)
PROG
(PARI) my(s=0); for(k=0, 100, if(!isprime(k), s+=k); print1(s", ")); \\ Cino Hilliard, Feb 04 2006
(Haskell)
a101203 n = a101203_list !! (n-1)
a101203_list = scanl (+) 0 $ zipWith (*) [1..] $ map (1 -) a010051_list
-- Reinhard Zumkeller, Oct 10 2013
CROSSREFS
Partial sums of A191558.
Sequence in context: A218121 A168300 A356048 * A141244 A121849 A164930
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 23 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 00:00 EDT 2024. Contains 371798 sequences. (Running on oeis4.)