OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
The 5th prime number is 11. The binary representation of 11 is 1011. There are 3 "1s" in 1011. 3 in binary is 11, so a(5)=3.
PROG
(PARI) a(n)={fromdigits(digits(hammingweight(prime(n)), 2))} \\ Andrew Howroyd, Nov 08 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Ben Branman, Jul 11 2009
EXTENSIONS
Terms a(32) and beyond from Andrew Howroyd, Nov 08 2019
STATUS
approved