Project Euler solutions in Java 8