Java solutions to project euler problems