Created
August 27, 2015 18:37
-
-
Save eshamster/2aaa00c00c86e937b3d9 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 calc-GCD (&rest nums) | |
(inverse-factorize-from-prime | |
(bundle-lists #'min | |
(mapcar #'factorize-in-prime nums)))) | |
(defun calc-LCM (&rest nums) | |
(inverse-factorize-from-prime | |
(bundle-lists #'max | |
(mapcar #'factorize-in-prime nums)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment