Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Babbage-problem/Common-Lisp/babbage-problem-1.lisp
Normal file
6
Task/Babbage-problem/Common-Lisp/babbage-problem-1.lisp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(defun babbage-test (n)
|
||||
"A generic function for any ending of a number"
|
||||
(when (> n 0)
|
||||
(do* ((i 0 (1+ i))
|
||||
(d (expt 10 (1+ (truncate (log n) (log 10))))) )
|
||||
((= (mod (* i i) d) n) i) )))
|
||||
Loading…
Add table
Add a link
Reference in a new issue