When should Pollard Rho be used as opposed to trial division?

435 Views Asked by At

How does one know which factorization algorithm to use on a given integer? More specifically, when should Pollard Rho Brent be used instead of simple trial division? Given the random nature of Pollard Rho Brent it's hard to know with certainty how long it will take to work (e.g. you could get lucky and pick a starting value that quickly leads to a cycle).