|
| |
|
|
A095074
|
|
Primes in whose binary expansion the number of 0-bits is less than or equal to number of 1-bits.
|
|
3
| |
|
|
2, 3, 5, 7, 11, 13, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 71, 79, 83, 89, 101, 103, 107, 109, 113, 127, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 271, 283, 307, 311, 313, 317, 331, 347
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,1
|
|
|
LINKS
| A. Karttunen and J. Moyer, C-program for computing the initial terms of this sequence
|
|
|
MATHEMATICA
| Select[Prime[Range[50]], DigitCount[#, 2, 0] <= DigitCount[#, 2, 1] &] (* From Alonso del Arte, Jan 11 2011 *)
|
|
|
PROG
| (PARI)forprime(p=2, 347, v=binary(p); s=0; for(k=1, #v, s+=if(v[k]==0, +1, -1)); if(s<=0, print1(p, ", "))) [W. Bomfim, Jan 13, 2011]
|
|
|
CROSSREFS
| Complement of A095071 in A000040. Differs from A057447 first time at n=18, where a(n)=71, while A057447(18)=67. Cf. A095054.
Sequence in context: A181160 A105049 A057447 * A042987 A089189 A097375
Adjacent sequences: A095071 A095072 A095073 * A095075 A095076 A095077
|
|
|
KEYWORD
| nonn,base
|
|
|
AUTHOR
| Antti Karttunen (his-firstname.his-surname(AT)iki.fi), Jun 01 2004
|
| |
|
|