Solutions to project euler problems in Java