






"""simple docstring"""






def  __lowerCamelCase					(					lowerCAmelCase__				):
				A__							 =       hex_num.strip()
				if not hex_num:
								raise ValueError('No value was passed to the function'				)

				A__							 =       hex_num[0] == '-'
				if is_negative:
								A__							 =       hex_num[1:]

				try:
								A__							 =       int(lowerCAmelCase__       ,16				)
				except ValueError:
								raise ValueError('Invalid value was passed to the function'				)

				A__							 =       ''
				while int_num > 0:
								A__							 =       str(int_num % 2				) + bin_str
								int_num >>= 1

				return int(('-' + bin_str) if is_negative else bin_str				)


if __name__ == "__main__":
					import doctest

					doctest.testmod()










"""simple docstring"""






from maths.prime_check import is_prime



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


if __name__ == "__main__":
					import doctest

					doctest.testmod()


