text: Finding the matrix mapping by considering non prime number as obstacle and prime number be valid path .
code: def preprocessMatrix ( a , n , m ) : NEW_LINE INDENT global prime NEW_LINE prime = [ 0 for i in range ( MAX ) ] NEW_LINE DEDENT