|
|
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
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|