


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


snake_case							: Dict      =   logging.get_logger(__name__)

snake_case							: int      =   {
    '''Visual-Attention-Network/van-base''': (
        '''https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'''
    ),
}







class  snake_case_     (lowerCamelCase_   ):
					UpperCAmelCase__      :					Optional[int]					   =    '''van'''
					def __init__(   self     :List[Any]    ,__snake_case     :Optional[int]=2_24    ,__snake_case     :Any=3    ,__snake_case     :List[Any]=[7, 3, 3, 3]    ,__snake_case     :Tuple=[4, 2, 2, 2]    ,__snake_case     :Optional[int]=[64, 1_28, 3_20, 5_12]    ,__snake_case     :Optional[int]=[3, 3, 12, 3]    ,__snake_case     :Any=[8, 8, 4, 4]    ,__snake_case     :int="gelu"    ,__snake_case     :Tuple=0.02    ,__snake_case     :Optional[int]=1E-6    ,__snake_case     :Any=1E-2    ,__snake_case     :Optional[int]=0.0    ,__snake_case     :Tuple=0.0    ,**__snake_case     :List[Any]    ,)      ->					List[str]:
												super().__init__(**__snake_case   )
												a__    =  image_size
												a__    =  num_channels
												a__    =  patch_sizes
												a__    =  strides
												a__    =  hidden_sizes
												a__    =  depths
												a__    =  mlp_ratios
												a__    =  hidden_act
												a__    =  initializer_range
												a__    =  layer_norm_eps
												a__    =  layer_scale_init_value
												a__    =  drop_path_rate
												a__    =  dropout_rate








from math import sqrt






def 							__lowercase     (				__lowerCAmelCase							:       int     ):

							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(sqrt(__lowerCAmelCase     ) + 1     )      ,					6     ):
														if number % i == 0 or number % (i + 2) == 0:
																					return False
							return True






def 							__lowercase     (				__lowerCAmelCase							:       int = 1_0_0_0_1     ):
							a__    =  0
							a__    =  1
							while count != nth and number < 3:
														number += 1
														if is_prime(__lowerCAmelCase     ):
																					count += 1
							while count != nth:
														number += 2
														if is_prime(__lowerCAmelCase     ):
																					count += 1
							return number


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




