Solutions to Euler Problems with java 8