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”).
%I #21 Apr 13 2024 20:07:48
%S 0,1,4,6,8,9,10,11,14,16,18,19,40,41,44,46,48,49,60,61,64,66,68,69,80,
%T 81,84,86,88,89,90,91,94,96,98,99,100,101,102,103,104,105,106,107,108,
%U 109,110,111,112,113,114,115,116,117,118,119,120,121,124,126,128,129,130
%N Numbers that have more nonprime digits than prime digits.
%t pdnpdQ[n_]:=With[{idn=IntegerDigits[n]},Count[idn,_?(PrimeQ[#]&)]<Count[idn,_?(!PrimeQ[ #]&)]]; Select[Range[0,150],pdnpdQ] (* _Harvey P. Dale_, Dec 19 2023 *)
%o (PARI) isok(n) = {my(d = if (n, digits(n), [0]), nbp = #select(x->isprime(x), d)); 2*nbp < #d;} \\ _Michel Marcus_, Feb 28 2019
%Y Cf. A084984.
%K base,easy,nonn
%O 1,3
%A _Jason Earls_, Jul 04 2003
%E 0 added by _Arkadiusz Wesolowski_, Jul 11 2011