codezonediitj / pydatastructs

A python package for data structures and algorithms
https://pydatastructs.readthedocs.io/en/stable/
Other
199 stars 269 forks source link

Adding Different Prime Algorithms #510

Open mohamedismail53 opened 2 years ago

mohamedismail53 commented 2 years ago

Description of the problem

here I need to implement different prime algorithms the problem states that Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number.

Example of the problem

if n = 10 then primes [2, 3, 5, 7]

References/Other comments

https://www.geeksforgeeks.org/c-cpp-program-to-find-prime-numbers-between-given-range/ https://www.geeksforgeeks.org/sieve-of-eratosthenes/

I'm a Gssoc'22 participant

ayushkl commented 1 year ago

Hi Is this issue closed? I would like to work on it.

PoulasthaMukherjee commented 1 year ago

@mohamedismail53 May I work on this?

Veena4512 commented 1 year ago

@mohamedismail53 I can work with this issue in python (I'll also provide time and space complexities and provide optimized code)

Meghaa702 commented 1 year ago

I would be happy to contribute to the project as I find my skills a good fit for the issue . As a GSSOC 23 member I humbly ask to allow me to contribute to the issue.