cp's OEIS Frontend

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.

A145065 a(n) = sum of primes <= n*10^9.

This page as a plain text file.
%I A145065 #19 Mar 02 2020 09:36:15
%S A145065 24739512092254535,95673602693282040,211169315361937456,
%T A145065 370412807102643725,572840944428163514,818062002011808625,
%U A145065 1105720106635140803,1435543734762318281,1807310307011831228,2220822432581729238,2675837181777714162,3172247016440147644
%N A145065 a(n) = sum of primes <= n*10^9.
%H A145065 Robert G. Wilson v, <a href="/A145065/b145065.txt">Table of n, a(n) for n = 1..25 </a>.
%F A145065 a(n) = A179660(10*n). - _R. J. Mathar_, Aug 05 2010
%e A145065 a(1) = 2 + 3 + 5 + ... + 999999937 = 24739512092254535.
%t A145065 k = 1; p = 2; s = 0; lst = {}; While[k < 10, While[p < 10^9*k, s = s + p; p = NextPrime@p]; k++; AppendTo[lst, s]; Print[{k - 1, s}]] (* _Robert G. Wilson v_, Jul 23 2010 *)
%o A145065 (PARI) A145065(n)=my(s=0);forprime(p=2,n*1e9,s+=p);s
%Y A145065 Cf. A046731, A178221, A179649, A179660.
%K A145065 nonn
%O A145065 1,1
%A A145065 _Jacques Tramu_, Feb 20 2009
%E A145065 Extended by _Charles R Greathouse IV_, Jul 24 2009
%E A145065 Edited by _N. J. A. Sloane_, Jul 27 2010