5.6. cpforager.utils.get_largest_factor

cpforager.utils.get_largest_factor(n)

Compute the largest factor.

Parameters:

n (int) – integer we want the largest factor.

Returns:

the largest factor.

Return type:

int

Note

n>0.