This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A117842 #13 Feb 16 2025 08:33:00 %S A117842 2,4,6,9,14,19,26,33,44,55,66,77,90,103,120,137,154,171,190,209,232, %T A117842 255,278,301,330,359,388,417,446,475,506,537,574,611,648,685,722,759, %U A117842 800,841,882,923,966,1009,1056,1103,1150,1197,1250,1303,1356 %N A117842 Partial sum of smallest prime >= n (A007918). %C A117842 Bertrand's [1845] postulate as proved by Chebyshev [1850] is versified: "Chebyshev said it, but I'll say it again; There's always a prime between n and 2n." [N. J. Fine in Schechter, 1998]. This sequence is the partial sum of the least such primes. It differs from A007504 "sum of first n primes" because of the repetitions in A007918. %D A117842 Schechter, B., My Brain is Open: The Mathematical Journeys of Paul Erdős. New York: Simon and Schuster, 1998. %H A117842 Robert Israel, <a href="/A117842/b117842.txt">Table of n, a(n) for n = 0..10000</a> %H A117842 Eric Weisstein et al., <a href="https://mathworld.wolfram.com/BertrandsPostulate.html">Bertrand's Postulate.</a> %F A117842 a(n) = SUM[i=0..n] A007918(n). a(n) = SUM[i=0..n] smallest prime >= i. a(n) = SUM[i=0..n] nextprime(i). %e A117842 a(50) = 2+ 2+ 2+ 3+ 5+ 5+ 7+ 7+ 11+ 11+ 11+ 11+ 13+ 13+ 17+ 17+ 17+ 17+ 19+ 19+ 23+ 23+ 23+ 23+ 29+ 29+ 29+ 29+ 29+ 29+ 31+ 31+ 37+ 37+ 37+ 37+ 37+ 37+ 41+ 41+ 41+ 41+ 43+ 43+ 47+ 47+ 47+ 47+ 53+ 53+ 53 = 1356. %p A117842 ListTools:-PartialSums(map(nextprime,[$-1..100])); # _Robert Israel_, Aug 09 2020 %t A117842 Accumulate[NextPrime[Range[0,50]-1]] (* _Harvey P. Dale_, Nov 13 2022 *) %Y A117842 Cf. A000040, A007504, A007918. %K A117842 easy,nonn %O A117842 0,1 %A A117842 _Jonathan Vos Post_, Apr 30 2006 %E A117842 Corrected by _T. D. Noe_, Nov 01 2006