Created
September 20, 2013 17:30
-
-
Save DeaconDesperado/6640967 to your computer and use it in GitHub Desktop.
Pythonic Sieve of Eratosthenes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sieve = [x for x in range(2,i) if not [t for t in range(2,x) if not x%t]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment