


from typing import List, Union

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


lowerCamelCase		=						logging.get_logger(__name__)

lowerCamelCase		=						{
    '''allenai/led-base-16384''': '''https://huggingface.co/allenai/led-base-16384/resolve/main/config.json''',
    # See all LED models at https://huggingface.co/models?filter=led
}





class    _a				(							_lowercase):
	_a    :    Union[str, Any]        =				'''led'''
	_a    :    Optional[Any]        =				{
	    '''num_attention_heads''': '''encoder_attention_heads''',
	    '''hidden_size''': '''d_model''',
	    '''attention_probs_dropout_prob''': '''attention_dropout''',
	    '''initializer_range''': '''init_std''',
	}




	def __init__(   self		:						Optional[Any]						,   _SCREAMING_SNAKE_CASE		:						Tuple=5_0265						,   _SCREAMING_SNAKE_CASE		:						Any=1_6384						,   _SCREAMING_SNAKE_CASE		:						str=1024						,   _SCREAMING_SNAKE_CASE		:						Union[str, Any]=12						,   _SCREAMING_SNAKE_CASE		:						Optional[Any]=4096						,   _SCREAMING_SNAKE_CASE		:						int=16						,   _SCREAMING_SNAKE_CASE		:						Optional[int]=12						,   _SCREAMING_SNAKE_CASE		:						Optional[int]=4096						,   _SCREAMING_SNAKE_CASE		:						List[str]=16						,   _SCREAMING_SNAKE_CASE		:						Any=0.0						,   _SCREAMING_SNAKE_CASE		:						Dict=0.0						,   _SCREAMING_SNAKE_CASE		:						Tuple=True						,   _SCREAMING_SNAKE_CASE		:						Any=True						,   _SCREAMING_SNAKE_CASE		:						Optional[int]="gelu"						,   _SCREAMING_SNAKE_CASE		:						List[Any]=1024						,   _SCREAMING_SNAKE_CASE		:						Union[str, Any]=0.1						,   _SCREAMING_SNAKE_CASE		:						Dict=0.0						,   _SCREAMING_SNAKE_CASE		:						int=0.0						,   _SCREAMING_SNAKE_CASE		:						List[str]=0.02						,   _SCREAMING_SNAKE_CASE		:						Any=2						,   _SCREAMING_SNAKE_CASE		:						List[Any]=0.0						,   _SCREAMING_SNAKE_CASE		:						Optional[int]=1						,   _SCREAMING_SNAKE_CASE		:						Union[str, Any]=0						,   _SCREAMING_SNAKE_CASE		:						int=2						,   _SCREAMING_SNAKE_CASE		:						Union[List[int], int] = 512						,   **_SCREAMING_SNAKE_CASE		:						int						,   )->			Any:
			lowerCAmelCase__  :     Optional[int]       	=   vocab_size
			lowerCAmelCase__  :     List[Any]       	=   max_encoder_position_embeddings
			lowerCAmelCase__  :     Tuple       	=   max_decoder_position_embeddings
			lowerCAmelCase__  :     Optional[Any]       	=   d_model
			lowerCAmelCase__  :     Tuple       	=   encoder_ffn_dim
			lowerCAmelCase__  :     List[str]       	=   encoder_layers
			lowerCAmelCase__  :     Dict       	=   encoder_attention_heads
			lowerCAmelCase__  :     str       	=   decoder_ffn_dim
			lowerCAmelCase__  :     Union[str, Any]       	=   decoder_layers
			lowerCAmelCase__  :     List[Any]       	=   decoder_attention_heads
			lowerCAmelCase__  :     int       	=   dropout
			lowerCAmelCase__  :     Optional[Any]       	=   attention_dropout
			lowerCAmelCase__  :     List[str]       	=   activation_dropout
			lowerCAmelCase__  :     Optional[Any]       	=   activation_function
			lowerCAmelCase__  :     Dict       	=   init_std
			lowerCAmelCase__  :     Tuple       	=   encoder_layerdrop
			lowerCAmelCase__  :     Union[str, Any]       	=   decoder_layerdrop
			lowerCAmelCase__  :     Tuple       	=   classifier_dropout
			lowerCAmelCase__  :     List[Any]       	=   use_cache
			lowerCAmelCase__  :     Tuple       	=   encoder_layers
			lowerCAmelCase__  :     Union[str, Any]       	=   attention_window

			super().__init__(
			    pad_token_id=_SCREAMING_SNAKE_CASE						,   bos_token_id=_SCREAMING_SNAKE_CASE						,   eos_token_id=_SCREAMING_SNAKE_CASE						,   is_encoder_decoder=_SCREAMING_SNAKE_CASE						,   decoder_start_token_id=_SCREAMING_SNAKE_CASE						,   **_SCREAMING_SNAKE_CASE						,   )








import math






def 	lowerCamelCase_       (			_a			):




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






def 	lowerCamelCase_       (			_a = 1_000      ,  _a = 1_000			):




		"""simple docstring"""






		lowerCAmelCase__  :     Union[str, Any]       	=   [0, 0, 0]  # length, a, b
		for a in range((a_limit * -1) + 1      ,  _a			):
				for b in range(2      ,  _a			):
						if is_prime(_a			):
								lowerCAmelCase__  :     str       	=   0
								lowerCAmelCase__  :     int       	=   0
								while is_prime((n**2) + (a * n) + b			):
										count += 1
										n += 1
								if count > longest[0]:
										lowerCAmelCase__  :     Dict       	=   [count, a, b]
		lowerCAmelCase__  :     int       	=   longest[1] * longest[2]
		return ans


if __name__ == "__main__":
		print(solution(1000, 1000))




