▲ | danbruc a day ago | |
Yes, because XORing two consecutive integers only differing in the least significant bit yields one.
Doing this twice with four consecutive numbers then also cancels the remaining one. That also means that you do not have to use consecutive numbers, you can use two arbitrary pairs
and for example
should be zero. |