OFFSET
1,1
COMMENTS
LINKS
A. Karttunen and J. Moyer: C-program for computing the initial terms of this sequence
MATHEMATICA
Select[Prime[Range[70]], DigitCount[#, 2, 1]<DigitCount[#, 2, 0]+4&] (* Harvey P. Dale, Feb 22 2020 *)
PROG
(PARI) B(x) = { nB = floor(log(x)/log(2)); b1 = 0; b0 = 0;
for(i = 0, nB, if(bittest(x, i), b1++; , b0++; ); );
if(b1 <= (3+b0), return(1); , return(0); ); };
forprime(x = 2, 311, if(B(x), print1(x, ", "); ); );
\\ Washington Bomfim, Jan 12 2011
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved