Prime Matrix Elements
CodeChefOpen on judge ↗
Problem description. A matrix element is a prime matrix element if following conditions are satisfied for A[i][j] - Sum of All elements in that row and that column except the element itself is prime than that element is prime matrix element. For e.g. If matrix is, 1 3 3 4 5 6 7 8 9 Than element '1' is prime matrix element because sum of elements in that row = 3 + 3 =6, sum of elements in that
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start