




'''simple docstring'''



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


UpperCAmelCase_				:     int     			=						logging.get_logger(__name__)

UpperCAmelCase_				:     Optional[int]     			=						{
    '''openbmb/cpm-ant-10b''': '''https://huggingface.co/openbmb/cpm-ant-10b/blob/main/config.json'''
    # See all CPMAnt models at https://huggingface.co/models?filter=cpmant
}





class 			lowerCAmelCase      (       __lowerCAmelCase):
       __lowercase     :					Dict       				=	'''cpmant'''


       def __init__(      self			,     __SCREAMING_SNAKE_CASE = 3_0720			,     __SCREAMING_SNAKE_CASE = 4096			,     __SCREAMING_SNAKE_CASE = 32			,     __SCREAMING_SNAKE_CASE = 128			,     __SCREAMING_SNAKE_CASE = 1_0240			,     __SCREAMING_SNAKE_CASE = 48			,     __SCREAMING_SNAKE_CASE = 0.0			,     __SCREAMING_SNAKE_CASE = 512			,     __SCREAMING_SNAKE_CASE = 2048			,     __SCREAMING_SNAKE_CASE = 1E-6			,     __SCREAMING_SNAKE_CASE = 1.0			,     __SCREAMING_SNAKE_CASE = 32			,     __SCREAMING_SNAKE_CASE = 32			,     __SCREAMING_SNAKE_CASE = 32			,     __SCREAMING_SNAKE_CASE = True			,     **__SCREAMING_SNAKE_CASE			,     )					->     str:



            '''simple docstring'''




            super().__init__(**__SCREAMING_SNAKE_CASE     )
            __snake_case			    =     prompt_types
            __snake_case			    =     prompt_length
            __snake_case			    =     segment_types
            __snake_case			    =     hidden_size
            __snake_case			    =     num_attention_heads
            __snake_case			    =     dim_head
            __snake_case			    =     dim_ff
            __snake_case			    =     num_hidden_layers
            __snake_case			    =     position_bias_num_buckets
            __snake_case			    =     position_bias_max_distance
            __snake_case			    =     dropout_p
            __snake_case			    =     eps
            __snake_case			    =     use_cache
            __snake_case			    =     vocab_size
            __snake_case			    =     init_std












'''simple docstring'''



from __future__ import annotations

import math
from itertools import permutations







def 	_UpperCamelCase       (_lowerCamelCase							:   int		)->      bool:




     '''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 	_UpperCamelCase       (_lowerCamelCase							:   int = 7		)->      int:




     '''simple docstring'''





     __snake_case			    =     ''''''.join(str(_lowerCamelCase		) for i in range(1      ,		n + 1		)		)
     __snake_case			    =     [int(''''''.join(_lowerCamelCase		)		) for i in permutations(_lowerCamelCase      ,		_lowerCamelCase		)]
     __snake_case			    =     [num for num in perm_list if is_prime(_lowerCamelCase		)]
     return max(_lowerCamelCase		) if pandigitals else 0


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






