For example if I do:
let sieve = new Uint32Array(1).fill(1);
I would like to look at the bit pattern at index 0 which should be
0000000000000000000000000001
I want to print it out to the console so that I get something like this:
0 0
1 0
2 0
3 0
.
.
.
31 1
Can I simply shift right to grab the 1 using >>
or do I have to use a bitwise AND as &
as well?
As a side, does it effect things if you switch to a signed representation such as here ...