Solution of Project Euler #13