solutions to Project Euler problems in Java