I have an array of integers:
[int1, int2, ..., intn]
I want to count how many non-zero bits are in the binary representation of these integers.
For example:
bin(123) -> 0b1111011, there are 6 non-zero bits
Of course I can loop over list of integers, use bin() and count('1') functions, but I'm looking for vectorized way to do it.
