Skip to content

Commit

Permalink
- Extended the flt_factor(n) to accept an optional base and the num…
Browse files Browse the repository at this point in the history
…ber of repetitions to try.

Example (try with base 3 and give up after 10^6 iterations):

	say flt_factor(2**64 + 1, 3, 1e6)	#=> [274177, 67280421310721]

Also optimized the implementation for much better performance.

- Minor code simplifications in the Number class.
  • Loading branch information
trizen committed Jan 7, 2021
1 parent 75888fb commit d71de37
Showing 1 changed file with 52 additions and 200 deletions.
Loading

0 comments on commit d71de37

Please sign in to comment.