Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import time
from math import sqrt
def sieve(stop):
'''
That sieve of eratosthenes thing. Implemented directly from the
pseudocode found here:
http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes#Implementation
'''