





import random







class     __lowerCAmelCase	:







      @staticmethod
      def        _lowercase  (   lowerCAmelCase__							)       ->						tuple[list[int], list[int]]:



        '''simple docstring'''




        a__     : Optional[Any]  =[ord(lowerCAmelCase__							) for i in text]
        a__     : List[Any]  =[]
        a__     : Optional[int]  =[]
        for i in plain:
          a__     : List[Any]  =random.randint(1		,				3_0_0							)
          a__     : str  =(i + k) * k
          cipher.append(lowerCAmelCase__							)
          key.append(lowerCAmelCase__							)
        return cipher, key







      @staticmethod
      def        _lowercase  (   lowerCAmelCase__		,				lowerCAmelCase__							)       ->						str:



        '''simple docstring'''




        a__     : Tuple  =[]
        for i in range(len(lowerCAmelCase__							)							):
          a__     : Union[str, Any]  =int((cipher[i] - (key[i]) ** 2) / key[i]							)
          plain.append(chr(lowerCAmelCase__							)							)
        return "".join(lowerCAmelCase__							)


if __name__ == "__main__":
     UpperCAmelCase					,     UpperCAmelCase     :     Union[str, Any]							=	Onepad().encrypt("""Hello""")
     print(c, k)
     print(Onepad().decrypt(c, k))













from maths.prime_check import is_prime
def 					_A	(		SCREAMING_SNAKE_CASE					:       int						):





  """simple docstring"""



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


if __name__ == "__main__":
     import doctest

     doctest.testmod()






