OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
n1Q[n_]:=Module[{idn2=IntegerDigits[Prime[n], 2]}, Count[idn2, 1] == Length[idn2]/2]; Select[Range[500], n1Q] (* Harvey P. Dale, Jun 26 2013 *)
PROG
(PARI) is(n)=n=prime(n); hammingweight(n)==hammingweight(bitneg(n, #binary(n))) \\ Charles R Greathouse IV, Mar 29 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, May 14 2010
EXTENSIONS
Entries checked by D. S. McNeil, Nov 26 2010
STATUS
approved