Projecteuler problems solutions written of Java