Skip to content

Duplicate algorithms in maths/primelib.py #10703

@tianyizheng02

Description

@tianyizheng02

Feature description

maths/primelib.py contains multiple functions for commonly-used computations related to primes (sieve of Eratosthenes, least common multiple, prime factors, etc.), and most if not all of these are also implemented in other files. In an effort to remove duplicate algorithms, should we delete maths/primelib.py in favor of separate files for each algorithm, or should we delete the other files and consolidate their implementations into maths/primelib.py?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis PR modified some existing files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions