login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A071411 "Sum of n first primes" minus "sum of first n nonprimes". 2
1, 0, -1, -2, 0, 3, 8, 13, 21, 34, 47, 64, 84, 105, 128, 156, 189, 223, 262, 303, 344, 390, 439, 493, 554, 617, 681, 748, 815, 884, 966, 1051, 1140, 1230, 1329, 1429, 1534, 1643, 1755, 1872, 1994, 2117, 2248, 2379, 2513, 2648, 2794, 2951, 3110, 3270, 3433, 3600, 3767, 3943, 4124, 4310, 4501, 4692, 4888 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

LINKS

Table of n, a(n) for n=1..59.

FORMULA

a(n) = A007504(n) - A051349(n). Cf. A024850.

PROG

(PARI) for(n=1, 100, s=2; while(sum(i=1, s, 1-isprime(i))<n, s++); print1(-sum(k=1, s, (1-is prime(k))*k)+sum(k=1, n, prime(k)), ", "))

CROSSREFS

Sequence in context: A020826 A094346 A074104 * A255384 A236396 A251592

Adjacent sequences:  A071408 A071409 A071410 * A071412 A071413 A071414

KEYWORD

easy,sign

AUTHOR

Benoit Cloitre, Jun 23 2002

EXTENSIONS

Corrected and edited by Jaroslav Krizek, Jun 17 2009

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified June 24 08:22 EDT 2017. Contains 288697 sequences.