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 calculate the sum of all prime elements in the first and last rows.
More Problems
Write a program to calculate the sum of all prime elements in the first and last columns.
Write a program to print all the elements in the matrix that are divisible by 4 and 6.
Write a program to print all the elements in the matrix that are divisible by 9 and 11.
Write a program to check if the matrix contains only odd prime numbers in the first diagonal.
Write a program to check if the matrix contains only even composite numbers in the second diagonal.
Write a program to print the matrix elements in alternating row zigzag pattern.
Write a program to print the matrix elements in alternating column zigzag pattern.
Write a program to replace all diagonal elements with the greatest common divisor (GCD) of their row and column sums.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...