Created
August 23, 2015 03:08
-
-
Save eshamster/4da870e65c183240d7c5 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 check-series-mod (target a n) | |
(cond ((< target 2) nil) | |
((= target 2) t) | |
(t (do-series (val a to (1- n)) | |
(if (= (mod target val) 0) | |
(return-from check-series-mod nil)) | |
(if (> (expt val 2) target) | |
(return-from check-series-mod t))) | |
t))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment