<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __find_prime_in_row(self, row):
 """ Find the first prime element in the specified row. Returns the column index, or -1 if no starred element was found. """

        col = -1
        for j in range(self.n):
            if self.marked[row][j] == 2:
                col = j
                break

        return col