This might be clearer with the number stream, perhaps by filtering out odd numbers (to demonstrate how it works across the whole input stream).