Project Euler problems 4, 7, 8, 16