Skip to content

Instantly share code, notes, and snippets.

@topher200
Created April 17, 2011 05:48
Show Gist options
  • Save topher200/923787 to your computer and use it in GitHub Desktop.
Save topher200/923787 to your computer and use it in GitHub Desktop.
find-prime using Java's BigInteger in Clojure
(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