Created
November 4, 2014 05:18
-
-
Save tgallant/688f6a26767fbd831418 to your computer and use it in GitHub Desktop.
euler3
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
;; e3 | |
(define (e3 n) | |
(define (e3-inner num div) | |
(if (> num 1) | |
(if (= (modulo num div) 0) | |
(e3-inner (/ num div) (- div 1)) | |
(e3-inner num (+ div 1))) | |
(+ div 1))) | |
(e3-inner n 2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment