Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A067180
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A067180 Smallest prime with digit sum n, or 0 if no such prime exists. +0
6
0, 2, 3, 13, 5, 0, 7, 17, 0, 19, 29, 0, 67, 59, 0, 79, 89, 0, 199, 389, 0, 499, 599, 0, 997, 1889, 0, 1999, 2999, 0, 4999, 6899, 0, 17989, 8999, 0, 29989, 39989, 0, 49999, 59999, 0, 79999, 98999, 0, 199999, 389999, 0, 598999, 599999, 0, 799999, 989999, 0 (list; graph; listen)
OFFSET

1,2

COMMENT

a(3k) = 0 for k>1.

EXAMPLE

a(68) = 59999999 because 59999999 is the smallest prime with digit sum = 68;

a(100) = 298999999999 because 298999999999 is the smallest prime with digit sum = 100.

MATHEMATICA

a = Table[0, {100}]; Do[b = Apply[ Plus, IntegerDigits[ Prime[n]]]; If[b < 101 && a[[b]] == 0, a[[b]] = Prime[n]], {n, 1, 10^7} ]; a

CROSSREFS

Cf. A054750.

Cf. Remove the 0 terms from this sequence and it leaves A067523.

Sequence in context: A009814 A051298 A069870 this_sequence A067182 A085402 A085400

Adjacent sequences: A067177 A067178 A067179 this_sequence A067181 A067182 A067183

KEYWORD

easy,nonn,base

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jan 09 2002

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Mar 01 2002

Edited by Ray Chandler (rayjchandler(AT)sbcglobal.net), Apr 24 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 9 18:50 EST 2009. Contains 170568 sequences.


AT&T Labs Research