Project Euler problems 13,14