Skip to content

[OTHER]: Duplicate entry of sieve of eratosthenes #1666

Closed

Description

@SpiderMath

What would you like to share?

There's three entries in total for Sieve of Eratosthenes on the website, but the problem is that there's a primary one out of the three which has a majority of the implementations, including that of JS. However, there's another one which has just another JS implementation of the exact same thing, and it's named Sieve of Eratosthenes Int Array, which is both a weird name and just a random duplicate entry. Since it only had a JS entry, I wasn't sure if I should open an issue on the website repo or here, hence I thought as this was a JS repo issue I'd open it here.
So, do we remove the duplicate entry from the repository?

Additional information

No response

Activity

  1. appgurueu commented on May 23, 2024

    @appgurueu
    Collaborator

    I think we can get rid of https://github.com/TheAlgorithms/JavaScript/blob/master/Maths/SieveOfEratosthenesIntArray.js; it is strictly inferior to https://github.com/TheAlgorithms/JavaScript/blob/master/Maths/SieveOfEratosthenes.js (except perhaps for being a bit simpler, at the cost of being less optimized).

  2. added
    choreGeneral improvement
    and removed
    awaiting triageAwaiting triage from a maintainer
    on May 23, 2024
  3. SpiderMath commented on May 23, 2024

    @SpiderMath
    ContributorAuthor

    Since you've added the beginner-friendly tag, do you wish to keep this issue open for any beginners to take it up or should I do it now and push the changes? (considering we only need to remove certain files)

  4. appgurueu commented on May 23, 2024

    @appgurueu
    Collaborator

    Since you've added the beginner-friendly tag, do you wish to keep this issue open for any beginners to take it up or should I do it now and push the changes? (considering we only need to remove certain files)

    Feel free to do it now

  5. added a commit that references this issue on May 25, 2024
    e3ef5c3
  6. AbhishekMane06 commented on Jul 12, 2024

    @AbhishekMane06

    There are three entries for the Sieve of Eratosthenes on the website, with one primary entry containing most implementations, including JavaScript. However, there's another entry named "Sieve of Eratosthenes Int Array," which is a duplicate with only a JavaScript implementation and a confusing name.

    • Remove the "Sieve of Eratosthenes Int Array" entry to avoid confusion and maintain consistency.
    • Ensure no unique features or references are lost in the process.

    Please review and confirm if this is a suitable approach.

  7. PranjalShrivas commented on Jul 14, 2024

    @PranjalShrivas

    There are two Sieve of Eratosthenes entries in the website ( I think they are duplicate ). It returns an array of boolean which tells the numbers are true or false.

    There is another one Sieve of Eratosthenes Int Array it return the Array of numbers that are primes only and it doesn't contains any non prime numbers.

    I think Sieve of Eratosthenes Int Array should not be removed, while out of two Sieve of Eratosthenes entries one should be removed because I think they are duplicate.
    Please tell if I am in right direction.

  8. appgurueu commented on Jul 17, 2024

    @appgurueu
    Collaborator

    As I said, I think removing the "Int Array" variant is fine. Then there is only one Sieve of Eratosthenes left.

  9. raklaptudirm commented on Jul 18, 2024

    @raklaptudirm
    Member

    There is a pr with the necessary change, but they seem to have abandoned it without removing the related tests.

  10. shah0108 commented on Oct 1, 2024

    @shah0108

    is this issue still on??

  11. appgurueu commented on Oct 2, 2024

    @appgurueu
    Collaborator

    Yes.

  12. 5 remaining items

  13. shah0108 commented on Oct 5, 2024

    @shah0108

    Sounds good!
    I agree with removing one of the implementations and renaming the remaining one to "Sieve of Eratosthenes" for clarity. I'll go ahead and:
    ->Remove the boolean array implementation.
    ->Rename the int array version to simply "Sieve of Eratosthenes."
    ->Consolidate the tests to ensure everything works smoothly.
    I'll start working on this and submit a PR shortly. Let me know if there's anything else you'd like to add!?

  14. added a commit that references this issue on Oct 5, 2024
    b8f1552
  15. sanjogbhalla16 commented on Oct 8, 2024

    @sanjogbhalla16

    I would love to contribute in this , if it open, it is my first time , can you please guide me.

  16. aynaash commented on Oct 8, 2024

    @aynaash

    Hi if this is still open maybe I could work on it. I am a beginner.

  17. m3tal10 commented on Oct 10, 2024

    @m3tal10

    Hey is this still available?

  18. AishwaryaTatiwar commented on Oct 13, 2024

    @AishwaryaTatiwar

    Hey!! please assign this to me if it's still available.

  19. mayurshetty15 commented on Dec 13, 2024

    @mayurshetty15

    Hi I like to work with this. Is it still open to work

  20. AtmajMishra commented on Jan 3, 2025

    @AtmajMishra

    Hii, If they issue is still open i would like to work on this. Could you please assign me so that i can work on it

  21. AishwaryaTatiwar commented on Jan 3, 2025

    @AishwaryaTatiwar
  22. raklaptudirm commented on Jan 3, 2025

    @raklaptudirm
    Member

    This issue won't be assigned to anyone, open a pull request and it will be reviewed.

    • Remove the boolean array implementation.
    • Rename the int array version to simply "Sieve of Eratosthenes."
    • Consolidate the tests to ensure everything works smoothly.
  23. locked as spam and limited conversation to collaborators on Jan 3, 2025
  24. added a commit that references this issue on Jan 8, 2025
    8f9269e
  25. added a commit that references this issue on Jan 12, 2025
    a62a46e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions