


from maths.prime_check import is_prime






def 		_A		(		_lowercase )					-> int:


     """simple docstring"""


     if not isinstance(_lowercase					,  _lowercase ):
          __UpperCamelCase =			f'''Input value of [number={number}] must be an integer'''
          raise TypeError(_lowercase )
     if is_prime(_lowercase ) and is_prime(number + 2 ):
          return number + 2
     else:
          return -1


if __name__ == "__main__":
    import doctest

    doctest.testmod()






'''simple docstring'''

from __future__ import annotations

lowerCamelCase				:  List[str]    		=      []

def _SCREAMING_SNAKE_CASE (A    ,					A    ,					A			)			->			bool:






       """simple docstring"""







       for i in range(len(A			)			):
              if board[row][i] == 1:
                     return False
       for i in range(len(A			)			):
              if board[i][column] == 1:
                     return False
       for i, j in zip(range(A    ,					-1    ,					-1			)    ,					range(A    ,					-1    ,					-1			)			):
              if board[i][j] == 1:
                     return False
       for i, j in zip(range(A    ,					-1    ,					-1			)    ,					range(A    ,					len(A			)			)			):
              if board[i][j] == 1:
                     return False
       return True

def _SCREAMING_SNAKE_CASE (A    ,					A			)			->			bool:






       """simple docstring"""







       if row >= len(A			):
              solution.append(A			)
              printboard(A			)
              print()
              return True
       for i in range(len(A			)			):
              if is_safe(A    ,					A    ,					A			):
                     lowercase__      =					1
                     solve(A    ,					row + 1			)
                     lowercase__      =					0
       return False

def _SCREAMING_SNAKE_CASE (A			)			->			None:






       """simple docstring"""







       for i in range(len(A			)			):
              for j in range(len(A			)			):
                     if board[i][j] == 1:
                            print('''Q'''    ,					end=''' '''			)
                     else:
                            print('''.'''    ,					end=''' '''			)
              print()


# n=int(input("The no. of queens"))
lowerCamelCase				:  Optional[Any]    		=      8
lowerCamelCase				:  Optional[int]    		=      [[0 for i in range(n)] for j in range(n)]
solve(board, 0)

print('The total no. of solutions are :', len(solution))




