Some euler catas solved in java