Python | sympy.factorint() method
With the help of sympy.factorint() method, we can find the factors and their corresponding multiplicities of a given integer. For input less than 2, factorint() behaves as follows: [Tex]factorint(1)[/Tex] - returns the empty factorization {}. [Tex]factorint(0)[/Tex] - returns [Tex]{0:1}[/Tex]. [Tex]