(38G) 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: (38G) Fermat Factorization (/thread-7336.html) |
(38G) Fermat Factorization - Gerald H - 11-29-2016 06:16 PM The programme accepts a positive, composite odd number from Ans in the Home screen & returns a factor in Ans. Fermat's method involves expressing the number to factor as the difference of two different integer squares & so finding two factors. The only division involved is in the last line of the programme. Code:
|