-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added the Number
flt_factor(n, tries=1e4)
method.
Tries to find a factor of `n`, using a new factorization method, inspired by Fermat's Little Theorem (FLT). The method is particularily effective for numbers that have factors closed to each other, or have a factor `k` for which `znorder(2,k)` is small. Example: say flt_factor(1759590140239532167230871849749630652332178307219845847129) #=> [12072684186515582507, 145749703467343411357142937615495959947] say flt_factor(28168370236334094367936640078057043313881469151722840306493) #=> [30426633744568826749, 925780041026134419587821276142742168257] ...taking 0.007s in total.
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters