Skip to content

Instantly share code, notes, and snippets.

@eamartin
Created October 2, 2012 09:06
Show Gist options
  • Save eamartin/3817599 to your computer and use it in GitHub Desktop.
Save eamartin/3817599 to your computer and use it in GitHub Desktop.
isPrime = lambda n: filter(lambda x: n % x == 0, range(n/2, 1, -1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment