login
This site is supported by donations to The OEIS Foundation.

 

Logo

"Email this user" was broken Aug 14 to 9am Aug 16. If you sent someone a message in this period, please send it again.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A130817 a(n) is the total sum of the digits of n-digit primes. 11
17, 197, 2041, 19879, 195226, 1920513, 18980518, 188098738, 1867197599, 18562452601, 184727304713, 1839816627645, 18335212785129, 182813489520604 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..14.

MATHEMATICA

Table[Plus @@ Flatten[IntegerDigits[Select[Range[10^(n - 1), 10^n], PrimeQ[ # ] &]]], {n, 7}]

PROG

(PARI) A007953(n)={ local(a=0, shft=n) ; while(shft!=0, a += shft %10 ; shft \= 10 ; ) ; return(a) ; } A130817(n)={ local(a=0) ; forprime(p=10^(n-1), 10^n, a += A007953(p) ; ) ; return(a) ; } { for(n=1, 30, print(A130817(n)" ") ; ) ; } - R. J. Mathar, Jan 16 2008

CROSSREFS

Sequence in context: A021184 A069361 A177135 * A055432 A154276 A021379

Adjacent sequences:  A130814 A130815 A130816 * A130818 A130819 A130820

KEYWORD

base,more,nonn

AUTHOR

Tanya Khovanova, Jul 16 2007

EXTENSIONS

One more term from R. J. Mathar, Jan 16 2008

a(9)-a(11) from Jon E. Schoenfield, Dec 01 2008

a(12)-a(14) from Giovanni Resta, Jul 20 2015

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified August 21 17:29 EDT 2017. Contains 290891 sequences.