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 the composite number a(n) in any way into two nonempty parts, each part represents a composite number.
This list is infinite because any string of two or more digits selected from {4,6,8} is a member.
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.
The composite 469 is a member because it is a composite and the slices (4, 69, 46, and 9) 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); }
isCompositeSlicingIntoComposites(n, b=10) = isComposite(n) && slicesIntoComposites(n, b);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Stanislav Sykora, Feb 15 2015
STATUS
approved