|
| |
|
|
A030144
|
|
Primes in which parity of digits alternates.
|
|
4
| |
|
|
2, 3, 5, 7, 23, 29, 41, 43, 47, 61, 67, 83, 89, 101, 103, 107, 109, 127, 149, 163, 167, 181, 307, 347, 349, 367, 383, 389, 503, 509, 521, 523, 541, 547, 563, 569, 587, 701, 709, 727, 743, 761, 769, 787, 907, 929, 941, 947, 967, 983, 2129, 2141, 2143, 2161, 2309
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,1
|
|
|
EXAMPLE
| 2129 is a term as 2, 1, 2 and 9 have even and odd parity alternately.
|
|
|
MATHEMATICA
| Join[{2, 3, 5, 7}, Select[Prime[Range[400]], Union[Abs[Differences[Boole/@ EvenQ[ IntegerDigits[#]]]]] == {1}&]] (* From Harvey P. Dale, Jul 26 2011 *)
|
|
|
CROSSREFS
| Sequence in context: A038603 A106116 A091727 * A156756 A068690 A069556
Adjacent sequences: A030141 A030142 A030143 * A030145 A030146 A030147
|
|
|
KEYWORD
| nonn,base
|
|
|
AUTHOR
| Patrick De Geest (pdg(AT)worldofnumbers.com)
|
| |
|
|