OFFSET
1,1
COMMENTS
LINKS
A. Karttunen and J. Moyer: C-program for computing the initial terms of this sequence
MATHEMATICA
Select[Prime[Range[100]], DigitCount[#, 2, 1]<(5+DigitCount[#, 2, 0])&] (* Harvey P. Dale, Dec 09 2015 *)
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 <= (4+b0), return(1); , return(0); ); };
forprime(x = 2, 293, if(B(x), print1(x, ", "); ); ); \\ Washington Bomfim, Jan 12 2011
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Antti Karttunen, Jun 04 2004
STATUS
approved