Project Euler in Java.