random project euler questions, in Java.