Created
February 9, 2013 22:42
-
-
Save WillNess/4747433 to your computer and use it in GitHub Desktop.
sieve of Bird
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
ps = (2:).minus [3..].foldr (\p r-> p*p:union [p*p+p, p*p+2*p..] r) [] $ ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment