Topic: Matrix Manipulation Problem / Level: beginner

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

Run the code to see the output here...