
"""simple docstring"""

from maths.prime_factors import prime_factors




def     lowercase__						(					lowerCAmelCase				:					int ) ->      int:






				"""simple docstring"""




				if not isinstance(lowerCAmelCase ,				lowerCAmelCase ):
								UpperCAmelCase									=					F"Input value of [number={number}] must be an integer"
								raise TypeError(lowerCAmelCase )
				if number < 1:
								raise ValueError('Input must be a positive integer' )
				return -1 if len(prime_factors(lowerCAmelCase ) ) % 2 else 1


if __name__ == "__main__":
			import doctest

			doctest.testmod()





"""simple docstring"""

def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return int((input_a, input_a).count(0 ) == 0 )




def     lowercase__						(					) ->      None:






    """simple docstring"""




    assert and_gate(0 ,				0 ) == 0
    assert and_gate(0 ,				1 ) == 0
    assert and_gate(1 ,				0 ) == 0
    assert and_gate(1 ,				1 ) == 1


if __name__ == "__main__":
   test_and_gate()
   print(and_gate(1, 0))
   print(and_gate(0, 0))
   print(and_gate(0, 1))
   print(and_gate(1, 1))



