OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
A. Karttunen and J. Moyer: C-program for computing the initial terms of this sequence
MATHEMATICA
Select[Prime[Range[100]], DigitCount[#, 2, 1]<= DigitCount[#, 2, 0]+6&] (* Harvey P. Dale, Aug 18 2016 *)
PROG
(PARI)forprime(p=2, 269, v=binary(p); s=0; for(k=1, #v, s+=if(v[k]==1, +1, -1)); if(s<=6, print1(p, ", "))) \\ Washington Bomfim, Jan 13 2011
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Antti Karttunen, Jun 04 2004
STATUS
approved