OFFSET
1,1
COMMENTS
The sequence is finite. Proof: Each 8-digit number has at least 10 nonprime substrings. Thus, each number with more than 8 digits has >= 10 nonprime substrings, too. Consequently, there is a boundary b<10^7, such that all numbers > b have more than 6 nonprime substrings.
LINKS
Hieronymus Fischer, Table of n, a(n) for n = 1..2351
EXAMPLE
a(1)=100, since 100 has 6 nonprime substrings (0, 0, 00, 1, 10, 100).
a(2351)= 3733797, since there are 6 nonprime substrings (9, 33, 3379, 7337, 733797, 3733797).
MATHEMATICA
Select[Range[700], Count[FromDigits/@Flatten[Table[Partition[ IntegerDigits[ #], n, 1], {n, IntegerLength[#]}], 1], _?(!PrimeQ[#]&)]==6&] (* Harvey P. Dale, Apr 08 2019 *)
CROSSREFS
KEYWORD
nonn,fini,base
AUTHOR
Hieronymus Fischer, Aug 26 2012
STATUS
approved