Created
January 5, 2009 16:57
-
-
Save hosiawak/43461 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 tak (x y z) | |
(if (>= y x) | |
z | |
(tak (tak (1- x) y z) | |
(tak (1- y) z x) | |
(tak (1- z) x y)))) | |
(defun call_tak () | |
(dotimes (i 10) (tak 24 16 8))) | |
* (time (call_tak)) | |
Evaluation took: | |
0.764 seconds of real time | |
0.744046 seconds of user run time | |
0.0 seconds of system run time | |
0 calls to %EVAL | |
0 page faults and | |
0 bytes consed. | |
NIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment