Skip to content

Instantly share code, notes, and snippets.

@Axect
Created February 17, 2018 20:10
Show Gist options
  • Save Axect/01e9afab058073cc1078ba223d93d26e to your computer and use it in GitHub Desktop.
Save Axect/01e9afab058073cc1078ba223d93d26e to your computer and use it in GitHub Desktop.
lazy3
primeFactors' n = filter (\p -> mod n p == 0) (takeWhile (\p -> p*p <= n) primes')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment