
'''simple docstring'''







import math
def  snake_case_		(    __SCREAMING_SNAKE_CASE :			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(__SCREAMING_SNAKE_CASE							) + 1							)				,				6							):
												if number % i == 0 or number % (i + 2) == 0:
																		return False
						return True
def  snake_case_		(    __SCREAMING_SNAKE_CASE :			int = 10001							):



						"""simple docstring"""





						try:
												lowercase_     :					Optional[int]													=	int(__SCREAMING_SNAKE_CASE							)
						except (TypeError, ValueError):
												raise TypeError('''Parameter nth must be int or castable to int.'''							) from None
						if nth <= 0:
												raise ValueError('''Parameter nth must be greater than or equal to one.'''							)
						lowercase_     :					list[int]													=	[]
						lowercase_     :					Tuple													=	2
						while len(__SCREAMING_SNAKE_CASE							) < nth:
												if is_prime(__SCREAMING_SNAKE_CASE							):
																		primes.append(__SCREAMING_SNAKE_CASE							)
																		num += 1
												else:
																		num += 1
						return primes[len(__SCREAMING_SNAKE_CASE							) - 1]


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


_lowercase			:  List[Any]   							=	logging.get_logger(__name__)

_lowercase			:  Optional[Any]   							=	{
    "google/vit-base-patch16-224": "https://huggingface.co/vit-base-patch16-224/resolve/main/config.json",
    # See all ViT models at https://huggingface.co/models?filter=vit
}






class 			lowerCAmelCase__       (  lowerCamelCase_					):
					lowerCAmelCase_					       =					'''vit'''






					def __init__(       self    ,							__SCREAMING_SNAKE_CASE=7_68    ,							__SCREAMING_SNAKE_CASE=12    ,							__SCREAMING_SNAKE_CASE=12    ,							__SCREAMING_SNAKE_CASE=30_72    ,							__SCREAMING_SNAKE_CASE="gelu"    ,							__SCREAMING_SNAKE_CASE=0.0    ,							__SCREAMING_SNAKE_CASE=0.0    ,							__SCREAMING_SNAKE_CASE=0.02    ,							__SCREAMING_SNAKE_CASE=1E-1_2    ,							__SCREAMING_SNAKE_CASE=2_24    ,							__SCREAMING_SNAKE_CASE=16    ,							__SCREAMING_SNAKE_CASE=3    ,							__SCREAMING_SNAKE_CASE=True    ,							__SCREAMING_SNAKE_CASE=16    ,							**__SCREAMING_SNAKE_CASE    ,							):


											"""simple docstring"""





											super().__init__(**__SCREAMING_SNAKE_CASE		)

											lowercase_     :					Union[str, Any]													=	hidden_size
											lowercase_     :					Dict													=	num_hidden_layers
											lowercase_     :					List[Any]													=	num_attention_heads
											lowercase_     :					Any													=	intermediate_size
											lowercase_     :					Union[str, Any]													=	hidden_act
											lowercase_     :					Dict													=	hidden_dropout_prob
											lowercase_     :					List[str]													=	attention_probs_dropout_prob
											lowercase_     :					Any													=	initializer_range
											lowercase_     :					Tuple													=	layer_norm_eps
											lowercase_     :					Union[str, Any]													=	image_size
											lowercase_     :					Tuple													=	patch_size
											lowercase_     :					Tuple													=	num_channels
											lowercase_     :					Union[str, Any]													=	qkv_bias
											lowercase_     :					List[Any]													=	encoder_stride







class 			lowerCAmelCase__       (  lowerCamelCase_					):
					lowerCAmelCase_					       =					version.parse('''1.11'''					)






					@property
					def      _snake_case   (       self		):


											"""simple docstring"""





											return OrderedDict(
											    [
											        ('''pixel_values''', {0: '''batch''', 1: '''num_channels''', 2: '''height''', 3: '''width'''}),
											    ]		)






					@property
					def      _snake_case   (       self		):


											"""simple docstring"""





											return 1E-4



