Please run and test the code please. If you can, make it very simple to read, I am still learn.
Write down a C program to generate a matrix (2-D Array) of integers in the range 1 to 100. The program should take the matrix dimensions (number of rows and number of columns) from the user.
Print the matrix in such a way that only the prime numbers are printed. Print the character ‘*' for the non-prime numbers.
[Note that 1 is not a prime number].
Example: if the generated matrix is: 1 2 3 4 5 6 7 8 9 10 11 12
Print: * 2 3 * 5 * 7 * * * 11 *