Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all prime elements in the matrix with their greatest common divisor (GCD) with their row index.

Run the code to see the output here...