This repo contains different Python scripts to find prime numbers.
All three implementations are optimized to skip even numbers for better performance.
The classic method to find all primes up to a number upper_limit
.
A more experimental version of the sieve of eratosthenes using triangular number logic.
Used for finding primes in a specific range, like [start, stop]
.
Run any file with Python 3:
python sieve_of_eratosthenes.py