


"""simple docstring"""





from maths.is_square_free import is_square_free
from maths.prime_factors import prime_factors



def     __lowercase					(    a :				int )					->					int:
      __snake_case      :    Optional[int]  			=prime_factors(a )
      if is_square_free(a ):
            return -1 if len(a ) % 2 else 1
      return 0


if __name__ == "__main__":
    import doctest

    doctest.testmod()










"""simple docstring"""





from __future__ import annotations



def     __lowercase					(    a :				int       ,		a :				int )					->					list[str]:
      if partitions <= 0:
            raise ValueError('''partitions must be a positive number!''' )
      if partitions > number_of_bytes:
            raise ValueError('''partitions can not > number_of_bytes!''' )
      __snake_case      :    List[str]  			=number_of_bytes // partitions
      __snake_case      :    str  			=[]
      for i in range(a ):
            __snake_case      :    Optional[Any]  			=i * bytes_per_partition + 1
            __snake_case      :    Any  			=(
                number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
            )
            allocation_list.append(f'''{start_bytes}-{end_bytes}''' )
      return allocation_list


if __name__ == "__main__":
    import doctest

    doctest.testmod()


