def sum_prod(n): contatore=0 for elemento in [2,3,5,7]: for elemento2 in n: prodotto=(elemento*elemento2) contatore+=prodotto return contatore