Problem 2614 · Easy

Prime In Diagonal

Scan both diagonals of a square matrix and keep the largest value that is prime.

Open the interactive visualisation