-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mom.math.is_prime #2
Comments
Heh. Yep. Haven't tested that routine yet. Cheers. |
Ok. Are you planning to add tests? |
Yep. Only 4 modules in the library don't have tests yet. mom/init 6 0 0 100% ^ 100% coverage. Ignore the stats shown. They're because of compatibility Pending: So, yep. Writing tests right now. =) |
Ok! :)
|
You're welcome to rewrite the routine. |
Oh no, it wouldn't be fast enough! On stackoverflow I saw an optimized sieve, I only have to find it. EDIT: Here it is!
It comes from this discussion: http://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n-in-pythonù |
Awesome! |
Yes it is! :) |
is_prime
returns True for 1. You should fix that.Thanks,
rubik
The text was updated successfully, but these errors were encountered: