Problems 1,2,3 for euler are completed using Java8 lambdas