JuliaMath / Primes.jl

Prime numbers in Julia
Other
98 stars 32 forks source link

primes should return an iterator #83

Open j2b2 opened 4 years ago

j2b2 commented 4 years ago

Today primes([lo,] hi) returns a collection, an iterator looks more suitable.

oscardssmith commented 2 years ago

This is clearly a better API, but I think it might be too breaking. Anyone have thoughts?