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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A036939 Smallest n-digit prime containing only digits 2 and 9, or 0 if no such prime exists. 0
2, 29, 229, 2999, 22229, 0, 2222929, 22229299, 222229229, 2222229299, 22222229299, 0, 2222222229229, 22222222222229, 222222222229229, 2222222222229299, 22222222222922299, 0, 2222222222222292929 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

MATHEMATICA

Join[{2}, Table[Min[Select[FromDigits/@(Join[#, {9}]&/@Tuples[{2, 9}, n]), IntegerLength[#]==n+1&&PrimeQ[#]&]], {n, 20}]]/.\[Infinity]->0 (* From Harvey P. Dale, Nov 08 2011 *)

CROSSREFS

Cf. A036229, A020460, A036312.

Sequence in context: A179025 A020460 A178000 * A124301 A077023 A101750

Adjacent sequences:  A036936 A036937 A036938 * A036940 A036941 A036942

KEYWORD

nonn,base

AUTHOR

Patrick De Geest (pdg(AT)worldofnumbers.com), Jan 04 1999.

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

Content is available under The OEIS End-User License Agreement .

Last modified February 16 05:39 EST 2012. Contains 205860 sequences.