Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Babbage-problem/NewLISP/babbage-problem.l
Normal file
8
Task/Babbage-problem/NewLISP/babbage-problem.l
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
;;; Start by assigning n the integer square root of 269696
|
||||
;;; minus 1 to be even
|
||||
(setq n 518)
|
||||
;;; Increment n by 2 till the last 6 digits of its square are 269696
|
||||
(while (!= (% (* n n) 1000000) 269696)
|
||||
(++ n 2))
|
||||
;;; Show the result and its square
|
||||
(println n "^2 = " (* n n))
|
||||
Loading…
Add table
Add a link
Reference in a new issue