login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A114053 Sum of the first n n-digit primes less n*10^(n-1). 2
1, 4, 11, 62, 153, 240, 409, 960, 729, 754, 1257, 1154, 2051, 3318, 3685, 4454, 9723, 4696, 7691, 6828, 9635, 10806, 9927, 14614, 18207, 22586, 23173, 30070, 27779, 32944, 36629, 36020, 54019, 57388, 52261, 53870, 52043, 52506, 59449, 60892, 83659, 65756, 95585 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MAPLE
a:= proc(n) option remember; local i, p, r;
p:= 10^(n-1); r:= -n*p;
for i to n do p:= nextprime(p); r:= r+p od; r
end:
seq(a(n), n=1..50); # Alois P. Heinz, Feb 26 2021
MATHEMATICA
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ@k, k++ ]; k]; f[n_] := Plus @@ Rest@NestList[NextPrim, 10^(n - 1), n] - n*10^(n - 1); Array[f, 39]
CROSSREFS
Sequence in context: A246598 A242749 A303955 * A266386 A134823 A000880
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Aug 14 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 12:53 EDT 2024. Contains 371969 sequences. (Running on oeis4.)