login
Partial sums of sequence of odd primes (A065091); a(n) = sum of the first n odd primes.
47

%I #26 Feb 13 2017 04:35:31

%S 3,8,15,26,39,56,75,98,127,158,195,236,279,326,379,438,499,566,637,

%T 710,789,872,961,1058,1159,1262,1369,1478,1591,1718,1849,1986,2125,

%U 2274,2425,2582,2745,2912,3085,3264,3445,3636,3829,4026,4225,4436,4659,4886

%N Partial sums of sequence of odd primes (A065091); a(n) = sum of the first n odd primes.

%H Robert Israel, <a href="/A071148/b071148.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = A007504(n+1) - 2.

%p ListTools:-PartialSums(select(isprime, [seq(i,i=3..1000,2)])); # _Robert Israel_, Feb 12 2017

%t Accumulate@ Prime@ Range[2, 49] (* _Michael De Vlieger_, Feb 12 2017 *)

%o (PARI) a(n) = sum(k=1, n+1, prime(k)) - 2; \\ _Michel Marcus_, Feb 12 2017

%Y Cf. A007504, A013916, A013917, A013918, A065091.

%K nonn,easy

%O 1,1

%A _Labos Elemer_, May 13 2002