Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to calculate the sum of all prime elements in the first and last rows.

Run the code to see the output here...