OFFSET
1,1
COMMENTS
Subsequence of A019549.
LINKS
David Radcliffe, Table of n, a(n) for n = 1..10000
PROG
(Python)
from sympy import primerange
oddPrimes = list(primerange(3, 1154))
def tryPartitioning(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 tryPartitioning(substr1)):
substr2 = binString[t:]
if substr2[0]!='0':
if (int(substr2) in oddPrimes) or (l-t>=2 and tryPartitioning(substr2)):
return 1
return 0
for p in oddPrimes:
if tryPartitioning(str(p)):
print(p, end=', ')
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Aug 03 2012
STATUS
approved
