ProjectEuler.net problems solutions in java