Lucky Numbers in a Matrix

Try to solve the Lucky Numbers in a Matrix problem.

Statement

Given an m×nm \times n ...