Created
August 27, 2015 16:40
-
-
Save eshamster/28125a9dafdc1fc3e2cd 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
(defun inverse-factorize-from-prime (target &key (prime-series *prime-series*)) | |
(if (null target) | |
1 | |
(* (expt (lcar prime-series) (car target)) | |
(inverse-factorize-from-prime (cdr target) | |
:prime-series (lcdr prime-series))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment