Skip to content

Instantly share code, notes, and snippets.

@DeaconDesperado
Created September 20, 2013 17:30
Show Gist options
  • Save DeaconDesperado/6640967 to your computer and use it in GitHub Desktop.
Save DeaconDesperado/6640967 to your computer and use it in GitHub Desktop.
Pythonic Sieve of Eratosthenes
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