![]() |
![]() |
#1 |
Dec 2014
3·5·17 Posts |
![]()
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, |
![]() |
![]() |
![]() |
#2 |
Dec 2014
3·5·17 Posts |
![]()
Learning about NP-complete problems was a while a go,
but "which factorization is closest to sqrt(N)" sounds like the "0-1 knapsack" problem. |
![]() |
![]() |
![]() |
#3 | |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
22·33·109 Posts |
![]() Quote:
Last fiddled with by xilman on 2021-02-07 at 09:24 |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with series convergence in Fermat method of factoring | EdH | Other Mathematical Topics | 52 | 2021-01-29 21:17 |
Generalized Fermat numbers (in our case primes) | pepi37 | Conjectures 'R Us | 4 | 2015-10-09 14:49 |
Best case Fermat Factors | yourskadhir | Miscellaneous Math | 5 | 2012-12-12 04:18 |
Modification of Fermat's method | rdotson | Miscellaneous Math | 0 | 2007-07-27 10:32 |
Fermat's factoring method with Gauss's inprovement | Carlos | Programming | 0 | 2005-09-11 12:50 |