This repository contains a jupyter notebook showing progressive examples for generating prime numbers up to 100. Each method is timed using timeit
.
Make sure you have Python 3 installed on your system.
Create a new virtualenv
environment:
python3 -m venv .venv
Enter the virtual environment:
source .venv/bin/activate
Install packages:
pip install -r requirements.txt
Launch Jupyter Notebook:
jupyter notebook
And select Prime Numbers.ipynb from the list of files.