Last active
September 24, 2016 06:33
-
-
Save katsuyan/9e143961e5311f94ec8908c536b638f0 to your computer and use it in GitHub Desktop.
数学パズルonLisp
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 get-palindromes-num (&optional (i 11)) | |
(if (and (string= (format nil "~vR" 2 i) (reverse (format nil "~vR" 2 i))) | |
(string= (format nil "~vR" 10 i) (reverse (format nil "~vR" 10 i))) | |
(string= (format nil "~vR" 8 i) (reverse (format nil "~vR" 8 i)))) | |
i | |
(get-palindromes-num (+ 2 i)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment