Created
July 15, 2017 09:08
-
-
Save qleguennec/d3f07cd9967c9a4b754c0a627dbc76fd to your computer and use it in GitHub Desktop.
This file contains 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
(defn prime-slieve | |
[f acc [p & coll]] | |
(if (nil? p) | |
acc | |
(recur f (f acc p) (doall (remove (partial div? p) coll))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment