Exercicio 14 do Projec Euler