Solutions to ProjectEuler in Java