OFFSET
1,1
COMMENTS
A proper prefix (or suffix) of a number m is one which is neither void, nor identical to m.
Alternative definition: Slicing the decimal expansion of a(n) in any way into two nonempty parts, each part represents a composite number.
The list is infinite because any string of two or more digits selected from {4,6,8} represents a member.
Each member a(n) starts, as well as ends, with one of the digits {4,6,8,9}.
LINKS
Stanislav Sykora, Table of n, a(n) for n = 1..10000
EXAMPLE
6 is not a member because its expansion cannot be sliced in two.
638 is a member because (6, 38, 63, and 8) are all composites.
PROG
(PARI) isComposite(n) = (n>2)&&(!isprime(n));
slicesIntoComposites(n, b=10) = {my(k=b); if(n<b, return(0); ); while(n\k>0, if(!isComposite(n\k)||!isComposite(n%k), return(0); ); k*=b); return(1); }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Stanislav Sykora, Feb 15 2015
STATUS
approved