Created
April 17, 2011 05:48
-
-
Save topher200/923787 to your computer and use it in GitHub Desktop.
find-prime using Java's BigInteger in Clojure
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 find-prime [bit-length] | |
(. BigInteger (probablePrime bit-length (new java.util.Random)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment