(33s) Fermat Factorization - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (33s) Fermat Factorization (/thread-18763.html) |
(33s) Fermat Factorization - Gerald H - 09-05-2022 08:46 AM Fermat's factorization method is particularly good for finding large factors of a number, & very poor at finding small factors. For example, for 608,391 (=3^4*7*29*37) the programme finds 777 almost instantaneously. Consequently the method is most efficient in dealing with the "difficult" case of a composite number having two large prime factors. The number 8616460799 is factorized in 49.6 s. Code: 1. LBL F |