



from math import sqrt




def       UpperCAmelCase__	(							__snake_case							)				->	Optional[Any]:
  _A          =      [1]
  for i in range(2  ,			int(sqrt(__snake_case							)							) + 1  ,			1							):
    if number % i == 0:
      values.append(__snake_case							)
      if int(number // i							) != i:
        values.append(int(number // i							)							)
  return sorted(__snake_case							)




def       UpperCAmelCase__	(							__snake_case							)				->	Any:
  return sum(factors(__snake_case							)							) > n




def       UpperCAmelCase__	(							__snake_case							)				->	Any:
  _A          =      factors(__snake_case							)
  _A          =      len(__snake_case							)
  _A          =      [[0 for i in range(number + 1							)] for j in range(r + 1							)]
  for i in range(r + 1							):
    _A          =      True

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

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

  return subset[r][number] != 0




def       UpperCAmelCase__	(							__snake_case							)				->	Optional[Any]:
  return abundant(__snake_case							) and not semi_perfect(__snake_case							)


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.''')




import importlib.metadata
import subprocess
import sys




def       UpperCAmelCase__	(							__snake_case = False							)				->	List[Any]:
  _A          =      False
  if "IPython" in sys.modules:
    _A          =      '''google.colab''' in str(sys.modules['''IPython'''].get_ipython()							)

  if in_colab:
    if upgrade:
      _A          =      ['''pip''', '''install''', '''-U''', '''torch''']
      subprocess.run(__snake_case  ,			check=__snake_case							)
    # get the current version of torch
    _A          =      importlib.metadata.version('''torch'''							)
    _A          =      torch_version[: torch_version.rindex('''.'''							)]
    _A          =      F'''https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-{torch_version_trunc}-cp37-cp37m-linux_x86_64.whl'''
    _A          =      ['''pip''', '''install''', xla_wheel]
    subprocess.run(__snake_case  ,			check=__snake_case							)
  else:
    raise RuntimeError('''`install_xla` utility works only on google colab.'''							)