login
A036935
Smallest n-digit prime containing only digits 1 and 8, or 0 if no such prime exists.
1
0, 11, 181, 1181, 18181, 0, 1111181, 11818181, 111111181, 1111111181, 11111188811, 0, 1111111118111, 11111111818181, 111111111111881, 1111111111111181, 11111111111188111, 0, 1111111111111111111
OFFSET
1,2
COMMENTS
a(6k) = 0 as any 6k-digit number containing only digits 1 or 8 is divisible by 7. - Jinyuan Wang, Mar 09 2020
LINKS
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Jan 04 1999
STATUS
approved