Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all prime numbers in the diagonals with -2.

Run the code to see the output here...