"""simple docstring"""






import pytest

import datasets.config
from datasets.utils.info_utils import is_small_dataset



@pytest.mark.parametrize('''dataset_size'''       ,    [None, 4_0_0 * 2**2_0, 6_0_0 * 2**2_0] )
@pytest.mark.parametrize('''input_in_memory_max_size'''       ,    ['''default''', 0, 1_0_0 * 2**2_0, 9_0_0 * 2**2_0] )
def SCREAMING_SNAKE_CASE__			(   __UpperCAmelCase       ,    __UpperCAmelCase       ,    __UpperCAmelCase )  ->  List[str]:
   if input_in_memory_max_size != "default":
      monkeypatch.setattr(datasets.config       ,    '''IN_MEMORY_MAX_SIZE'''       ,    __UpperCAmelCase )
   lowercase__:   str					=      datasets.config.IN_MEMORY_MAX_SIZE
   if input_in_memory_max_size == "default":
      assert in_memory_max_size == 0
   else:
      assert in_memory_max_size == input_in_memory_max_size
   if dataset_size and in_memory_max_size:
      lowercase__:   List[Any]					=      dataset_size < in_memory_max_size
   else:
      lowercase__:   Dict					=      False
   lowercase__:   Optional[Any]					=      is_small_dataset(__UpperCAmelCase )
   assert result == expected

"""simple docstring"""






def SCREAMING_SNAKE_CASE__			(   __UpperCAmelCase=2_8_1_2_3 )  ->  Any:
   lowercase__:   Optional[Any]					=      [1] * (limit + 1)

   for i in range(2       ,    int(limit**0.5 ) + 1 ):
      sum_divs[i * i] += i
      for k in range(i + 1       ,    limit // i + 1 ):
         sum_divs[k * i] += k + i

   lowercase__:   Union[str, Any]					=      set()
   lowercase__:   Optional[Any]					=      0

   for n in range(1       ,    limit + 1 ):
      if sum_divs[n] > n:
         abundants.add(__UpperCAmelCase )

      if not any((n - a in abundants) for a in abundants ):
         res += n

   return res


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