OFFSET
1,1
MATHEMATICA
d[n_]:=IntegerDigits[n]; aQ[n_]:=Union[Abs[Differences[Boole@EvenQ[d[n]]]]]=={1}; t={2, 3}; Do[p=Prime[i]; x=FromDigits[Flatten[{d[Last[t]], d[p]}]]; If[aQ[p] && aQ[x], AppendTo[t, p]], {i, 5, 600}]; t (* Jayanta Basu, May 23 2013 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 20 2002
STATUS
approved