Chalarangelo / 30-seconds-of-python

Short Python code snippets for all your development needs
https://www.30secondsofcode.org/python/p/1
Creative Commons Attribution 4.0 International
8.83k stars 1.26k forks source link

added sieve_of_eratosthenes for finding Prime Numbers #153

Closed ShuLaPy closed 5 years ago

ShuLaPy commented 5 years ago

Description

Added a Sieve Of Eratosthenes algorithm used for finding prime numbers between 2 to N which is a very important algorithm in competitive programming.

What does your PR belong to?

Types of changes

Checklist: