File: sage/libs/flint/ulong_extras_sage.pyx (starting at line 1)#
- sage.libs.flint.ulong_extras_sage.n_factor_to_list(n, proved)[source]#
A wrapper around
n_factor
.EXAMPLES:
sage: from sage.libs.flint.ulong_extras_sage import n_factor_to_list sage: n_factor_to_list(60, 20) [(2, 2), (3, 1), (5, 1)] sage: n_factor_to_list((10**6).next_prime() + 1, 0) [(2, 2), (53, 2), (89, 1)]
>>> from sage.all import * >>> from sage.libs.flint.ulong_extras_sage import n_factor_to_list >>> n_factor_to_list(Integer(60), Integer(20)) [(2, 2), (3, 1), (5, 1)] >>> n_factor_to_list((Integer(10)**Integer(6)).next_prime() + Integer(1), Integer(0)) [(2, 2), (53, 2), (89, 1)]