sum of primes in the diagonal