Fermat method best case
I am a computer guy and not a math guy.
I have been playing with Fermat's factoring method and come upon a math question.
In the worst case Fermat is O(n^1/2) but in the best case it is O(1).
I am looking for ways to make the best case more common.
If we multiply 1000 small consecutive primes together to make N,
how long does Fermat's method take to factor N?
Since N has 1000 factors, there are 2^1000 different ways to factor N.
Another way to ask the same question is, which factorization is closest to sqrt(N)
and how far from sqrt(N) is it?
Maybe a math person will find this interesting.
If not, that is OK too.
Thanks,
