Skip to content

Instantly share code, notes, and snippets.

@gdejohn
Created March 21, 2016 09:39
Show Gist options
  • Select an option

  • Save gdejohn/e8f716cf708252636836 to your computer and use it in GitHub Desktop.

Select an option

Save gdejohn/e8f716cf708252636836 to your computer and use it in GitHub Desktop.
import Data.List (nubBy)
primes = nubBy (((> 1) .) . gcd) [2..]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment