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”).

A068887
Primes with property that digits alternate in parity individually as well as in concatenation with previous terms.
1
2, 3, 23, 29, 41, 43, 47, 61, 67, 83, 89, 2129, 2141, 2143, 2161, 2309, 2341, 2347, 2381, 2383, 2389, 2503, 2521, 2543, 2549, 2707, 2729, 2741, 2749, 2767, 2789, 2903, 2909, 2927, 2963, 2969, 4127, 4129, 4327, 4349
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
Cf. A030144.
Sequence in context: A042585 A143279 A272271 * A364142 A260128 A220569
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 20 2002
STATUS
approved