Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to calculate the sum of the diagonal elements that are prime numbers.

Run the code to see the output here...