


'''simple docstring'''







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


a__  : Dict				=	logging.get_logger(__name__)

a__  : str				=	{
    'google/reformer-crime-and-punishment': (
        'https://huggingface.co/google/reformer-crime-and-punishment/resolve/main/config.json'
    ),
    'google/reformer-enwik8': 'https://huggingface.co/google/reformer-enwik8/resolve/main/config.json',
}
class  lowercase_					(   a__       ):
    __UpperCAmelCase             =     'reformer'
    __UpperCAmelCase             =     ['past_buckets_states']
    __UpperCAmelCase             =     {}


    def __init__(					self  , a=64  , a=["local", "lsh", "local", "lsh", "local", "lsh"]  , a=1.0  , a=True  , a=[64, 64]  , a=[64, 1_92]  , a=0  , a=2  , a=5_12  , a=None  , a="relu"  , a=0.05  , a=2_56  , a=0.02  , a=False  , a=1e-12  , a=1  , a=0  , a=0.05  , a=64  , a=64  , a=0.0  , a=1  , a=0  , a=40_96  , a=12  , a=None  , a=1  , a=0  , a=3_20  , a=False  , a=True  , a=None  , **a  , ):
          UpperCamelCase__  =    hash_seed
          UpperCamelCase__  =    vocab_size
          UpperCamelCase__  =    attention_head_size
          UpperCamelCase__  =    hidden_size
          UpperCamelCase__  =    num_attention_heads
          UpperCamelCase__  =    num_hashes
          UpperCamelCase__  =    len(a   )
          UpperCamelCase__  =    tuple(a   ) if isinstance(a  , a   ) else num_buckets
          UpperCamelCase__  =    lsh_attn_chunk_length
          UpperCamelCase__  =    local_attn_chunk_length
          UpperCamelCase__  =    lsh_num_chunks_after
          UpperCamelCase__  =    lsh_num_chunks_before
          UpperCamelCase__  =    local_num_chunks_after
          UpperCamelCase__  =    local_num_chunks_before
          UpperCamelCase__  =    hidden_act
          UpperCamelCase__  =    feed_forward_size
          UpperCamelCase__  =    hidden_dropout_prob
          UpperCamelCase__  =    lsh_attention_probs_dropout_prob
          UpperCamelCase__  =    local_attention_probs_dropout_prob
          UpperCamelCase__  =    max_position_embeddings
          UpperCamelCase__  =    initializer_range
          UpperCamelCase__  =    layer_norm_eps
          UpperCamelCase__  =    axial_pos_embds
          UpperCamelCase__  =    tuple(a   )
          UpperCamelCase__  =    tuple(a   )
          UpperCamelCase__  =    axial_norm_std
          UpperCamelCase__  =    chunk_size_lm_head
          UpperCamelCase__  =    attn_layers
          UpperCamelCase__  =    use_cache
          UpperCamelCase__  =    classifier_dropout
          super().__init__(
              pad_token_id=a  , eos_token_id=a  , is_decoder=a  , tie_word_embeddings=a  , **a  , )









'''simple docstring'''







import math







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







def _UpperCamelCase	(					__A = 1000				,      __A = 1000   )							->		int:


      '''simple docstring'''



      UpperCamelCase__  =    [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   ):
                        UpperCamelCase__  =    0
                        UpperCamelCase__  =    0
                        while is_prime((n**2) + (a * n) + b   ):
                              count += 1
                              n += 1
                        if count > longest[0]:
                              UpperCamelCase__  =    [count, a, b]
      UpperCamelCase__  =    longest[1] * longest[2]
      return ans


if __name__ == "__main__":
  print(solution(1_0_0_0, 1_0_0_0))





