Exercicio 12 do project euler"