Skip to content

Instantly share code, notes, and snippets.

View janek515's full-sized avatar

Jan Ochwat janek515

View GitHub Profile
@janek515
janek515 / eratosthenes.py
Created October 3, 2020 16:49
Sieve of Eratosthenes
# Sieve of Eratosthenes
# Made by mlodyvifon 3.10.2020
# Ask for range of primes
print("P = set of all prime numbers")
print("A = P ∩ (1, x)")
a = int(input('x = '))
# Create an empty list
numbers = []