



from maths.prime_check import is_prime


def 			UpperCamelCase(  __UpperCamelCase							:		int ):
		if not isinstance(__UpperCamelCase     ,__UpperCamelCase ):
				lowerCAmelCase_			:     Union[str, Any]									= f"""Input value of [number={number}] must be an integer"""
				raise TypeError(__UpperCamelCase )
		if is_prime(__UpperCamelCase ) and is_prime(number + 2 ):
				return number + 2
		else:
				return -1


if __name__ == "__main__":
						import doctest

						doctest.testmod()










import string


def 			UpperCamelCase(  __UpperCamelCase							:		str ):
		for key in range(len(string.ascii_uppercase ) ):
				lowerCAmelCase_			:     List[Any]									= ''''''
				for symbol in message:
						if symbol in string.ascii_uppercase:
								lowerCAmelCase_			:     Optional[int]									= string.ascii_uppercase.find(__UpperCamelCase )
								lowerCAmelCase_			:     Optional[int]									= num - key
								if num < 0:
										lowerCAmelCase_			:     int									= num + len(string.ascii_uppercase )
								lowerCAmelCase_			:     int									= translated + string.ascii_uppercase[num]
						else:
								lowerCAmelCase_			:     Optional[int]									= translated + symbol
				print(f"""Decryption using Key #{key}: {translated}""" )


def 			UpperCamelCase(  ):
		lowerCAmelCase_			:     Dict									= input('''Encrypted message: ''' )
		lowerCAmelCase_			:     List[str]									= message.upper()
		decrypt(__UpperCamelCase )


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						main()





