-
-
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.
- Optimizations in Number
lpf(n)
when n
is very large, by using o…
…ur fast `trial_factor(n,k)` method. Example: say lpf(fib(50402326)) #=> 37 (takes only 0.39s -- before it took over 19s) Also faster for: for k in (3..1000) { say (k! / (k-2)! -> fib.lpf) } The above code now takes only 1.3s to run. Before it took over 10s.
- Loading branch information
Showing
1 changed file
with
12 additions
and
10 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