



'''simple docstring'''
import math



def 		_SCREAMING_SNAKE_CASE							(				lowerCamelCase__   :      int				):


			'''simple docstring'''







			if 1 < number < 4:
						# 2 and 3 are primes
						return True
			elif number < 2 or number % 2 == 0 or number % 3 == 0:
						# Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
						return False

			# All primes number are in format of 6k +/- 1
			for i in range(5							,							int(math.sqrt(lowerCamelCase__				) + 1				)							,							6				):
						if number % i == 0 or number % (i + 2) == 0:
									return False
			return True



def 		_SCREAMING_SNAKE_CASE							(				lowerCamelCase__   :      int = 600851475143				):


			'''simple docstring'''







			try:
						A:      Optional[Any]														=   int(lowerCamelCase__				)
			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."""				)
			A:      Any														=   0
			if is_prime(lowerCamelCase__				):
						return n
			while n % 2 == 0:
						n //= 2
			if is_prime(lowerCamelCase__				):
						return n
			for i in range(3							,							int(math.sqrt(lowerCamelCase__				)				) + 1							,							2				):
						if n % i == 0:
									if is_prime(n // i				):
												A:      Tuple														=   n // i
												break
									elif is_prime(lowerCamelCase__				):
												A:      List[Any]														=   i
			return max_number


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










'''simple docstring'''
from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


__SCREAMING_SNAKE_CASE :      int             =logging.get_logger(__name__)

__SCREAMING_SNAKE_CASE :      Optional[int]             ={
    'facebook/convnext-tiny-224': 'https://huggingface.co/facebook/convnext-tiny-224/resolve/main/config.json',
    # See all ConvNeXT models at https://huggingface.co/models?filter=convnext
}


class   SCREAMING_SNAKE_CASE__				(   snake_case_     ,			snake_case_					):
	"""simple docstring"""


	A__    :    List[str]						=				'''convnext'''


	def __init__(		self					,   A=3					,   A=4					,   A=4					,   A=None					,   A=None					,   A="gelu"					,   A=0.02					,   A=1e-12					,   A=1e-6					,   A=0.0					,   A=2_24					,   A=None					,   A=None					,   **A					,   ) ->							Dict:
				super().__init__(**A			)

				A:      List[str]														=   num_channels
				A:      Optional[Any]														=   patch_size
				A:      List[str]														=   num_stages
				A:      Tuple														=   [96, 1_92, 3_84, 7_68] if hidden_sizes is None else hidden_sizes
				A:      List[Any]														=   [3, 3, 9, 3] if depths is None else depths
				A:      int														=   hidden_act
				A:      int														=   initializer_range
				A:      Optional[int]														=   layer_norm_eps
				A:      Tuple														=   layer_scale_init_value
				A:      int														=   drop_path_rate
				A:      Tuple														=   image_size
				A:      Union[str, Any]														=   ["""stem"""] + [f'stage{idx}' for idx in range(1					,   len(self.depths			) + 1			)]
				A							,		A:      List[str]														=   get_aligned_output_features_output_indices(
				    out_features=A					,   out_indices=A					,   stage_names=self.stage_names			)







class   SCREAMING_SNAKE_CASE__				(   snake_case_					):
	"""simple docstring"""


	A__    :    Any						=				version.parse('''1.11'''					)


	@property
	def      a__ (		self			) ->							Mapping[str, Mapping[int, str]]:
				return OrderedDict(
				    [
				        ("""pixel_values""", {0: """batch""", 1: """num_channels""", 2: """height""", 3: """width"""}),
				    ]			)





	@property
	def      a__ (		self			) ->							float:
				return 1e-5





