text: Return if cell contain non prime number or obstacle , or going out of matrix or already visited the cell or already found the lexicographical largest path
code: if ( mappedMatrix [ i ] [ j ] == 0 || i > n || j > m || mark [ i ] [ j ] || ( * q ) ) return ;