Skip to content

Add doctest to maths/sieve_of_eratosthenes and remove other/finding_primes #1078

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

Merged
merged 1 commit into from
Jul 26, 2019

Conversation

obelisk0114
Copy link
Contributor

@obelisk0114 obelisk0114 commented Jul 26, 2019

Both of the two files implemented sieve of eratosthenes.
However, there was a bug in other/finding_primes.py, and the time complexity was larger than the other.
Therefore, remove other/finding_primes.py and add doctest to maths/sieve_of_eratosthenes.py.

Patch for #1070 and #1026

…g_primes.py

Both of the two files implemented sieve of eratosthenes.
However, there was a bug in other/finding_primes.py, and the time complexity was larger than the other.
Therefore, remove other/finding_primes.py and add doctest tomaths/sieve_of_eratosthenes.py.
Copy link
Member

@cclauss cclauss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM... Thanks for the tests as well.

@cclauss cclauss merged commit 46bc673 into TheAlgorithms:master Jul 26, 2019
@obelisk0114 obelisk0114 deleted the patch3 branch July 26, 2019 19:04
stokhos pushed a commit to stokhos/Python that referenced this pull request Jan 3, 2021
…g_primes.py (TheAlgorithms#1078)

Both of the two files implemented sieve of eratosthenes.
However, there was a bug in other/finding_primes.py, and the time complexity was larger than the other.
Therefore, remove other/finding_primes.py and add doctest tomaths/sieve_of_eratosthenes.py.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants