OFFSET
1,1
COMMENTS
The sequence is finite. Proof: Each 7-digit number has at least 6 nonprime substrings. Thus, each number with more than 7 digits has >= 6 nonprime substrings, too. Consequently, there is a boundary b<10^6, such that all numbers > b have more than 5 nonprime substrings.
LINKS
Hieronymus Fischer, Table of n, a(n) for n = 1..1330
EXAMPLE
a(1)=101, since 101 has 5 nonprime substrings (0, 01, 1, 1, 10).
a(1330)= 831373, since there are 5 nonprime substrings (1, 8, 831, 8313, 31373).
CROSSREFS
KEYWORD
nonn,fini,base
AUTHOR
Hieronymus Fischer, Aug 26 2012
STATUS
approved