OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..19 (calculated using Kim Walisch's primesum program)
Kim Walisch, Sum of the primes below x (primesum).
FORMULA
Beginning with 3, compute 10^n sums of odds, less odd composites, for each 10^n.
From R. J. Mathar, Oct 28 2007: (Start)
a(n) = Sum_{p: p in A000040} (2 < p <= 2*10^n).
EXAMPLE
a(1) = 75 because that is the sum of odds (3+5+7+11+13+17+19=75) less composites (9,15,21) under 10^1 (beginning with 3).
PROG
(PARI) list(nmax) = {my(s = 0, m = 20, n = 1); forprime(p = 3, , if(p > m, print1(s, ", "); if(n == nmax, break); n++; m *= 10); s += p); } \\ Amiram Eldar, Jan 18 2025
(PARI) a(n) = vecsum(primes([3, 2*10^n])); \\ Michel Marcus, Jan 18 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Enoch Haga, Oct 14 2007
EXTENSIONS
Better definition from R. J. Mathar, Oct 28 2007
a(9)-a(14) from Hiroaki Yamanouchi, Jul 06 2014
a(15) from Amiram Eldar, Jan 18 2025
STATUS
approved