Working through Project Euler with Java, one problem at a time