login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A077131
Sum of odd-indexed primes.
7
2, 7, 18, 35, 58, 89, 130, 177, 236, 303, 376, 459, 556, 659, 768, 895, 1032, 1181, 1338, 1505, 1684, 1875, 2072, 2283, 2510, 2743, 2984, 3241, 3510, 3787, 4070, 4377, 4690, 5021, 5368, 5721, 6088, 6467, 6856, 7257, 7676, 8107, 8546, 8995, 9456, 9923, 10410
OFFSET
1,1
COMMENTS
Partial sums of A031368. - Michel Marcus, Oct 27 2015
EXAMPLE
p_1=2, p_2=3 and p_3=5, therefore a(2) = p_1 + p_3 = 2 + 5 = 7.
MATHEMATICA
A077131list[nmax_]:=Accumulate[Prime[Range[1, 2nmax, 2]]]; A077131list[100] (* Paolo Xausa, Aug 28 2023 *)
Accumulate[Prime[Range[1, 101, 2]]] (* Harvey P. Dale, Nov 08 2024 *)
PROG
(PARI) a(n)=if(n<1, 0, sum(k=1, n, prime(2*k-1)))
CROSSREFS
Sequence in context: A307684 A141631 A172188 * A342397 A212685 A176854
KEYWORD
nonn
AUTHOR
Jon Perry, Nov 29 2002
STATUS
approved