login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073902 Number of n-digit primes with digit sum n. 0
0, 1, 0, 4, 12, 0, 95, 212, 0, 2395, 10657, 0, 126068, 375941, 0, 4943357, 20513691, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

COMMENTS

a(3n)=0. - Sascha Kurz, Aug 23 2002

LINKS

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

EXAMPLE

a(2) = 1 because the only two-digit prime with digit sum 2 is 11. a(5) = 12: the primes are 10103, 10211, 10301, 11003, 12011, 12101, 13001, 20021, 20201, 21011, 21101, and 30011.

MATHEMATICA

Table[Length[Select[Prime[Range[PrimePi[10^(n-1)]+1, PrimePi[10^n]]], Total[IntegerDigits[#]]==n&]], {n, 8}] (* Harvey P. Dale, Aug 09 2011 *)

CROSSREFS

Cf. A069710.

Sequence in context: A014458 A099733 A330989 * A144207 A016487 A104063

Adjacent sequences:  A073899 A073900 A073901 * A073903 A073904 A073905

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy, Aug 18 2002

EXTENSIONS

More terms from Sascha Kurz, Aug 23 2002

a(4) and a(5) corrected, and example corrected, by Harvey P. Dale, Aug 09 2011

a(11) corrected and a(13)-a(15) from Donovan Johnson, Aug 10 2011

a(16)-a(18) from David Radcliffe, May 05 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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 28 13:42 EST 2021. Contains 349412 sequences. (Running on oeis4.)