"""simple docstring"""







def   __lowerCAmelCase(		__UpperCAmelCase = 20      ):






	"""simple docstring"""





	try:
		_lowercase			:     Any      					=				int(__UpperCAmelCase      )
	except (TypeError, ValueError):
		raise TypeError('Parameter n must be int or castable to int.'      )
	if n <= 0:
		raise ValueError('Parameter n must be greater than or equal to one.'      )
	_lowercase			:     int      					=				0
	while 1:
		i += n * (n - 1)
		_lowercase			:     int      					=				0
		for j in range(2  ,__UpperCAmelCase      ):
			if i % j != 0:
				_lowercase			:     Union[str, Any]      					=				1
				break
		if nfound == 0:
			if i == 0:
				_lowercase			:     Dict      					=				1
			return i
	return None


if __name__ == "__main__":
						print(f"""{solution() = }""")




"""simple docstring"""







from ...configuration_utils import PretrainedConfig
from ...utils import logging


SCREAMING_SNAKE_CASE						=    logging.get_logger(__name__)

SCREAMING_SNAKE_CASE						=    {
    'facebook/regnet-y-040': 'https://huggingface.co/facebook/regnet-y-040/blob/main/config.json',
}



class 			_lowerCamelCase      (__lowerCamelCase  ):
				_snake_case  =	"regnet"
				_snake_case  =	["x", "y"]







				def __init__(			self     :							Any      ,       lowerCamelCase_     :							Optional[Any]=3      ,       lowerCamelCase_     :							List[str]=3_2      ,       lowerCamelCase_     :							str=[1_2_8, 1_9_2, 5_1_2, 1_0_8_8]      ,       lowerCamelCase_     :							int=[2, 6, 1_2, 2]      ,       lowerCamelCase_     :							Union[str, Any]=6_4      ,       lowerCamelCase_     :							int="y"      ,       lowerCamelCase_     :							Optional[Any]="relu"      ,       **lowerCamelCase_     :							Optional[Any]      ,       ):

					"""simple docstring"""






					super().__init__(**lowerCamelCase_    )
					if layer_type not in self.layer_types:
						raise ValueError(F'''layer_type={layer_type} is not one of {','.join(self.layer_types    )}'''    )
					_lowercase			:     str      					=				num_channels
					_lowercase			:     Optional[Any]      					=				embedding_size
					_lowercase			:     Union[str, Any]      					=				hidden_sizes
					_lowercase			:     Optional[int]      					=				depths
					_lowercase			:     Optional[int]      					=				groups_width
					_lowercase			:     Tuple      					=				layer_type
					_lowercase			:     Union[str, Any]      					=				hidden_act
					# always downsample in the first stage
					_lowercase			:     Optional[int]      					=				True



