Project Euler #66: Diophantine equation