Solutions for project euler problems in java 8 using lambdas