login
Smallest n-digit prime containing only the digits 5 and 9, or 0 if no such prime exists.
1

%I #14 Mar 09 2020 12:26:55

%S 5,59,599,0,59999,599959,5595559,55555559,555555599,5555555959,

%T 55555595999,555555555559,5555555599999,55555555595599,

%U 555555555995959,5555555555559959,55555555555555999,555555555555555559

%N Smallest n-digit prime containing only the digits 5 and 9, or 0 if no such prime exists.

%H Jinyuan Wang, <a href="/A036947/b036947.txt">Table of n, a(n) for n = 1..500</a>

%Y Cf. A020468, A036229, A036321.

%K nonn,base

%O 1,1

%A _Patrick De Geest_, Jan 04 1999