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 print all the prime numbers in the main diagonal of a matrix.
More Problems
Write a program to print all the prime numbers in the anti-diagonal of a matrix.
Write a program to print all the even elements in the border of a matrix.
Write a program to print all the odd elements in the border of a matrix.
Write a program to find the sum of all positive elements in a matrix.
Write a program to find the sum of all negative elements in a matrix.
Write a program to count how many prime numbers are there in the entire matrix.
Write a program to print the matrix elements in diagonal stripes.
Write a program to check if all border elements of a matrix are prime numbers.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...