OFFSET
1,1
COMMENTS
Subsequence of A019549.
PROG
(Python)
# oddPrimes = [3, ..., 1153]
def tryPartioning(binString): # First digit is not 0
l = len(binString)
for t in range(1, l):
substr1 = binString[:t]
if (int(substr1) in oddPrimes) or (t>=2 and tryPartioning(substr1)):
substr2 = binString[t:]
if substr2[0]!='0':
if (int(substr2) in oddPrimes) or (l-t>=2 and tryPartioning(substr2)):
return 1
return 0
for p in oddPrimes:
if tryPartioning(str(p)):
print p,
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Aug 03 2012
STATUS
approved