Project Euler Problem No. 6