Solutions for Project Euler in Java