Skip to main content
4 votes

Pollard's rho algorithm implementation

I used std::multiset to determine how many times that factor appears It's an option. You could also use a plain old map to store a factor (key) and its exponent (...
user555045's user avatar
  • 10.3k

Only top scored, non community-wiki answers of a minimum length are eligible