galois.factors

galois.factors(x)[source]

Computes the positive factors of the integer x.

Parameters

x (int) – An integer to be factored.

Returns

Sorted array of factors of x.

Return type

np.ndarray