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!)
A036951 Smallest n-digit prime containing only the digits 8 and 9, or 0 if no such prime exists. 2
0, 89, 0, 8999, 89899, 888989, 8888989, 88888999, 888898889, 8888888989, 88888888999, 888888898999, 8888888999899, 88888888888889, 888888888898999, 8888888888989999, 88888888888888889, 888888888888898889 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Table[SelectFirst[10#+9&/@FromDigits/@Tuples[{8, 9}, n-1], PrimeQ], {n, 20}]/. (Missing["NotFound"]->0) (* Harvey P. Dale, Feb 01 2018 *)
CROSSREFS
Sequence in context: A159420 A093222 A114922 * A051328 A166321 A187812
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Jan 04 1999
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 March 28 05:39 EDT 2024. Contains 371235 sequences. (Running on oeis4.)