






from maths.prime_check import is_prime
def       snake_case_		(     lowerCAmelCase_       :						int      ):
       if not isinstance(lowerCAmelCase_       ,       lowerCAmelCase_      ):
              __lowercase      :							Any				=     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()







from .imports import is_tqdm_available


if is_tqdm_available():
	from tqdm.auto import tqdm as _tqdm

from ..state import PartialState
def       snake_case_		(     lowerCAmelCase_       :						bool = True       ,       *lowerCAmelCase_       :						int       ,       **lowerCAmelCase_       :						List[str]      ):
							if not is_tqdm_available():
														raise ImportError("""Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."""      )
							__lowercase      :							List[str]				=     False
							if main_process_only:
														__lowercase      :							Optional[int]				=     PartialState().local_process_index == 0
							return _tqdm(*lowerCAmelCase_       ,       **lowerCAmelCase_       ,       disable=lowerCAmelCase_      )