Project Euler #31