Closed Volbla closed 1 year ago
@Volbla Thank you for your submission.
@emillynge I'm interested in your feedback on this proposed change to your solution, if you'd like to provide any?
I can confirm a speed increase, but on my system it's close to 10%. That's still an improvement, so I'll merge this after CI completes successfully.
Description
Making the sieve faster by working closer with numpy's datatype, and by performing fewer calculations in plain python. I measure a 15% - 20% speed increase.
Renamed two local variables for clarity (v -> bit; step -> prime).
Contributing requirements
drag-race
as the target branch.