Quote:
Originally Posted by bgbeuning
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,

https://en.wikipedia.org/wiki/Fermat...ization_method and then scroll down to "Multiplier improvement". Finally read and understand Ref. 1 
https://www.ams.org/journals/mcom/19...03401632.pdf