Project Euler problems solved with Java