0

Is there any fast way to find total divisors of a very large number supposedly 10^18. I have tried a method which is of o(n^(1/3)) Forgive me asking direct question without providing any background or something else.

1 Answers1

0

The fastest algorithm for that would be General number field sieve, probably fits your question.

On this question there is some discussion ongoing about how to efficiently find all divisors. GNFS is used for factorization, so only accounts prime numbers. You'll have to derive all divisors from that, if you need to. How to I find all divisors from prime factorization?

Further reading: A beginner's guide to the Number Field Sieve; Factoring Integers with the Number Field Sieve

Daemon Painter
  • 3,208
  • 3
  • 29
  • 44