Function to check if all a [ i ] [ j ] with prime ( i + j ) are prime
def checkIndex ( n , m , a ) : NEW_LINE INDENT for i in range ( 0 , n ) : NEW_LINE INDENT for j in range ( 0 , m ) : NEW_LINE DEDENT DEDENT