project euler questions coded in Java