Project Euler katas solved in Java