Note
Click here to download the full example code
Factorization examples¶
This page provides examples using the methods prime factors and Pollard Rho.
prime factors method¶
from Factorization import *
factorisation=Factorization()
print(factorisation.prime_factors(70))
Out:
[2, 5, 7]
Pollard Rho method¶
from Factorization import *
factorisation=Factorization()
print(factorisation.pollardrho(70))
Out:
[7, 10]
Total running time of the script: ( 0 minutes 0.005 seconds)