final product
- updated with logic to extract all diagonal elements
- print the sum of the prime numbers from the list of diagonal elements