For a good answer, ask this question at http://mathematica.stackexchange.com
For answers, read ...
Function
myTestQ[num_Integer] :=
And[DigitCount[num][[10]] > Plus @@ DigitCount[num][[1 ;; 3]], PrimeQ[num]]
True, , (i) 0 , 1 s, 2 s, 3 (ii) . And , , .
; , , .
, 0,1,2,3. , , , 4. :
IntegerString[Range[lo, hi, 2], 4]
, base-4 lo -th hi -th 2 ( ).
IntegerString[Range[1, 13, 2], 4]
{"1", "3", "11", "13", "21", "23", "31"}
1-, 3-, 5-,..., 13- -4 . , , ToExpression.
, -
Select[ToExpression[IntegerString[Range[lo, hi, 2], 4]], myTestQ]
lo hi , , lo - .