Project Euler 2 using streams