

"""simple docstring"""




from maths.prime_check import is_prime
def   lowerCAmelCase						(					__UpperCamelCase      ):
 '''simple docstring'''





 if not isinstance(__UpperCamelCase							,    __UpperCamelCase      ):
  UpperCAmelCase__					:  Optional[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()








"""simple docstring"""




__UpperCAmelCase =				'Tobias Carryer'

from time import time







class      __lowercase			:

  def __init__(  self		:			Union[str, Any]					,A		:			Dict					,A		:			Optional[int]					,A		:			Union[str, Any]					,A		:			int=int(time()    )    ):  # noqa: B008






   '''simple docstring'''
   UpperCAmelCase__					:  int					   =					multiplier
   UpperCAmelCase__					:  Union[str, Any]					   =					increment
   UpperCAmelCase__					:  Dict					   =					modulo
   UpperCAmelCase__					:  Tuple					   =					seed




  def    __lowercase       (  self		:			Dict    ):






   '''simple docstring'''
   UpperCAmelCase__					:  Any					   =					(self.multiplier * self.seed + self.increment) % self.modulo
   return self.seed


if __name__ == "__main__":
      # Show the LCG in action.
      __UpperCAmelCase =				LinearCongruentialGenerator(166_4525, 10_1390_4223, 2 << 31)
      while True:
            print(lcg.next_number())





