



"""simple docstring"""







from .imports import is_tqdm_available


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

from ..state import PartialState

def       _lowerCamelCase				(							UpperCAmelCase_ :       bool = True,	*UpperCAmelCase_ :       List[Any],	**UpperCAmelCase_ :       List[Any]     )	-> Any:






	"""simple docstring"""





	if not is_tqdm_available():
		raise ImportError("Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."     )
	A__											=					False
	if main_process_only:
		A__											=					PartialState().local_process_index == 0
	return _tqdm(*UpperCAmelCase_,	**UpperCAmelCase_,	disable=UpperCAmelCase_     )






"""simple docstring"""


from maths.prime_check import is_prime






def    _snake_case					(		snake_case__ :  int  ):
	if not isinstance(snake_case__						,   snake_case__  ):
		A     = F'Input value of [number={number}] must be an integer'
		raise TypeError(snake_case__  )
	if is_prime(snake_case__  ) and is_prime(number + 2  ):
		return number + 2
	else:
		return -1


if __name__ == "__main__":
		import doctest

		doctest.testmod()