OFFSET
1,1
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..1000
EXAMPLE
313 is in the sequence because 31 and 3 are both primes, and 3 and 13 are both primes, so there are two ways.
MATHEMATICA
spl[n_] := Block[{d = IntegerDigits@n, c = 0, z}, z = Length@d; Do[ If[ PrimeQ@ FromDigits@ Take[d, k] && d[[k + 1]] > 0 && PrimeQ@ FromDigits@ Take[d, k - z], c++], {k, z - 1}]; c]; Select[ Prime@ Range@1400, spl[#] == 2 &] (* Giovanni Resta, Feb 27 2014 *)
PROG
(Haskell)
a238057 n = a238057_list !! (n-1)
a238057_list = filter ((== 2) . length . f) a000040_list where
f x = filter (\(us, vs) ->
head vs /= '0' &&
a010051' (read us :: Integer) == 1 &&
a010051' (read vs :: Integer) == 1) $
map (flip splitAt $ show x) [1 .. length (show x) - 1]
-- Reinhard Zumkeller, Feb 27 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Feb 17 2014
STATUS
approved