


import socket


def 		lowercase_	(  ):


			'''simple docstring'''







			__lowercase			       = socket.socket(socket.AF_INET							,      socket.SOCK_STREAM	)
			__lowercase			       = socket.gethostname()
			__lowercase			       = 1_23_12

			sock.connect((host, port)	)
			sock.send(B'''Hello server!'''	)

			with open('''Received_file'''							,      '''wb'''	) as out_file:
						print('''File opened'''	)
						print('''Receiving data...'''	)
						while True:
									__lowercase			       = sock.recv(10_24	)
									if not data:
												break
									out_file.write(_UpperCamelCase	)

			print('''Successfully received the file'''	)
			sock.close()
			print('''Connection closed'''	)


if __name__ == "__main__":
	main()






from maths.prime_factors import prime_factors


def 		lowercase_	(  _UpperCamelCase	):


			'''simple docstring'''







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


if __name__ == "__main__":
	import doctest

	doctest.testmod()


