OFFSET
1,1
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
EXAMPLE
13997 is in the sequence because 13, 997, 139, 97, 1399 and 7 are all primes, so there are three 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@ 20000, spl[#] == 3 &] (* Giovanni Resta, Mar 03 2014 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Feb 27 2014
STATUS
approved