Solving maths with Java. Problem specifications are property of www.projecteuler.net