JuliaMath / Primes.jl

Prime numbers in Julia
Other
99 stars 32 forks source link

Add `eachfactor` iterator #118

Closed oscardssmith closed 2 years ago

oscardssmith commented 2 years ago

followup to https://github.com/JuliaMath/Primes.jl/pull/117. Adds an eachfactor iterator that allows users to get the factors without allocations which can be very nice for lowering overhead of factoring small numbers.

jmichel7 commented 2 years ago

Are you going to merge this branch? I would like to check if I can remove my cached factor everywhere...

oscardssmith commented 2 years ago

Yeah. I'm planning on merging this pretty soon (and bump the version to 0.5.3). The last thing I need to do is add a few tests.

oscardssmith commented 2 years ago

I'll merge this by the end of the week unless there are objections.