OFFSET
1,1
COMMENTS
Can it be proved that this sequence has relative density 0 in the primes? Numbers with equal numbers of even and odd decimal digits have k * n/sqrt(log(n)) members up to n (k varies by upper or lower density). - Charles R Greathouse IV, Nov 12 2010
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
The prime 1889 contains an equal number of odd and even digits.
MATHEMATICA
fQ[n_] := Block[{id = IntegerDigits[n]}, Length[Select[id, OddQ]] == Length[Select[id, EvenQ]]]; Select[Prime[Range[300]], fQ] (* Robert G. Wilson v, Sep 24 2008 *)
eoQ[n_]:=Module[{idn=IntegerDigits[n]}, Count[idn, _?OddQ]==Count[ idn, _?EvenQ]]; Select[Prime[Range[300]], eoQ] (* Harvey P. Dale, Mar 07 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Parthasarathy Nambi, Sep 15 2008
STATUS
approved