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!)
A022094 Sum of first prime(n) primes. 2
5, 10, 28, 58, 160, 238, 440, 568, 874, 1480, 1720, 2584, 3266, 3638, 4438, 5830, 7418, 7982, 9854, 11240, 11966, 14288, 15968, 18650, 22548, 24680, 25800, 28104, 29296, 31734, 41022, 43940, 48494 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A007504(A000040(n)). - Robert Israel, Jan 13 2019
MAPLE
[ seq(sum(ithprime(k), k=1..ithprime(i)), i=1..100) ];
# Alternative:
Primes:= select(isprime, [2, seq(i, i=3..10^4, 2)]):
L:= ListTools:-PartialSums(Primes):
seq(L[Primes[i]], i=1..numtheory:-pi(nops(Primes))); # Robert Israel, Jan 13 2019
MATHEMATICA
a[n_]:=Sum[Prime[k], {k, 1, Prime[n]}]; Array[a, 50] (* Stefano Spezia, Jan 14 2019 *)
CROSSREFS
Cf. A000040, A007504 (sum of first n primes).
Sequence in context: A218466 A277825 A054298 * A134129 A240515 A105862
KEYWORD
easy,nonn
AUTHOR
Detlef Pauly (dettodet(AT)yahoo.de)
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 May 3 03:31 EDT 2024. Contains 372204 sequences. (Running on oeis4.)