Solutions to Project Euler in Java