Project Euler, Problem 18 Java