login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A238499
Primes which are the concatenation of two primes in exactly three ways.
3
3137, 3797, 13997, 19937, 19997, 23911, 23929, 29173, 29311, 31193, 37337, 37397, 43397, 59929, 73331, 78737, 79337, 103997, 109397, 127997, 139967, 173347, 173359, 193337, 193373, 193877, 199337, 199373, 199967, 229373, 233113, 233329, 233353, 233617
OFFSET
1,1
LINKS
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