#Programming Algorithmic problem solving: How to efficiently compute the parity of a stream of numbers