




'''simple docstring'''



from math import sqrt







def      _UpperCamelCase	(_lowerCamelCase							:       int		)->				list[int]:




     '''simple docstring'''





     __snake_case         =					[1]
     for i in range(2				,		int(sqrt(_lowerCamelCase		)		) + 1				,		1		):
          if number % i == 0:
               values.append(_lowerCamelCase		)
               if int(number // i		) != i:
                    values.append(int(number // i		)		)
     return sorted(_lowerCamelCase		)







def      _UpperCamelCase	(_lowerCamelCase							:       int		)->				bool:




     '''simple docstring'''





     return sum(factors(_lowerCamelCase		)		) > n







def      _UpperCamelCase	(_lowerCamelCase							:       int		)->				bool:




     '''simple docstring'''





     __snake_case         =					factors(_lowerCamelCase		)
     __snake_case         =					len(_lowerCamelCase		)
     __snake_case         =					[[0 for i in range(number + 1		)] for j in range(r + 1		)]
     for i in range(r + 1		):
          __snake_case         =					True

     for i in range(1				,		number + 1		):
          __snake_case         =					False

     for i in range(1				,		r + 1		):
          for j in range(1				,		number + 1		):
               if j < values[i - 1]:
                    __snake_case         =					subset[i - 1][j]
               else:
                    __snake_case         =					subset[i - 1][j] or subset[i - 1][j - values[i - 1]]

     return subset[r][number] != 0







def      _UpperCamelCase	(_lowerCamelCase							:       int		)->				bool:




     '''simple docstring'''





     return abundant(_lowerCamelCase		) and not semi_perfect(_lowerCamelCase		)


if __name__ == "__main__":
     import doctest

     doctest.testmod(verbose=True)
     for number in (6_9, 7_0, 7_1):
          print(F"""{number} is {"" if weird(number) else "not "}weird.""")












'''simple docstring'''



from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


UpperCAmelCase_    :					Any					      =						{
    '''configuration_retribert''': ['''RETRIBERT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''RetriBertConfig'''],
    '''tokenization_retribert''': ['''RetriBertTokenizer'''],
}

try:
     if not is_tokenizers_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     UpperCAmelCase_    :					str					      =						['''RetriBertTokenizerFast''']

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     UpperCAmelCase_    :					Optional[int]					      =						[
         '''RETRIBERT_PRETRAINED_MODEL_ARCHIVE_LIST''',
         '''RetriBertModel''',
         '''RetriBertPreTrainedModel''',
     ]


if TYPE_CHECKING:
     from .configuration_retribert import RETRIBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, RetriBertConfig
     from .tokenization_retribert import RetriBertTokenizer

     try:
          if not is_tokenizers_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .tokenization_retribert_fast import RetriBertTokenizerFast

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_retribert import (
              RETRIBERT_PRETRAINED_MODEL_ARCHIVE_LIST,
              RetriBertModel,
              RetriBertPreTrainedModel,
          )

else:
     import sys

     UpperCAmelCase_    :					Any					      =						_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)






