EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic: Matrix Manipulation Problem / Level: beginner
Problem:
Write a program to count how many prime elements are there in the middle diagonal of a matrix.
More Problems
Write a program to count how many composite elements are there in the borders of a matrix.
Write a program to print all diagonal elements divisible by 7 and 11.
Write a program to print all border elements divisible by 9 and 13.
Write a program to replace all diagonal elements with their inverse values.
Write a program to replace all border elements with their cube roots.
Write a program to check if the matrix contains only multiples of 4 and 9.
Write a program to check if the matrix contains only multiples of 5 and 12.
Write a program to calculate the sum of all perfect square numbers in the matrix.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...