Factor the number 455839. You could try every prime up to its square root — that is trial division, and it works fine for small numbers. But what if the number has 100 digits? Trial division would take longer than the age of the universe.
In 1987, the mathematician Hendrik Lenstra Jr. published an algorithm that finds prime factors far more efficiently by doing arithmetic on elliptic curves — the same exotic objects that now underpin much of modern cryptography. The trick is that elliptic-curve arithmetic can fail in a very revealing way: when it does, a factor of your number falls out almost as a side effect.
ECM (Elliptic Curve Method) is the world's best algorithm for finding medium-sized factors (up to about 50–60 digits). For integers where no small factor exists, harder algorithms like the General Number Field Sieve take over. ECM is a key component of virtually every serious factoring effort today.
Comments
Loading comments...