Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all composite elements in the matrix with their least common multiple (LCM) with their column index.

Run the code to see the output here...