Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
9
Task/Babbage-problem/Berkeley-Logo/babbage-problem.logo
Normal file
9
Task/Babbage-problem/Berkeley-Logo/babbage-problem.logo
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
to babbage.problem
|
||||
; We can start at the square root of 269696
|
||||
make "I 520
|
||||
; 269696 is a multiple of 4, 520 too
|
||||
; so we can increment :i by 4
|
||||
while [not (modulo (:i * :i) 1000000 = 269696)] [make "i :i + 4]
|
||||
print sentence "|The smallest positive integer whose square ends in the digits 269696 is| :i
|
||||
print sentence "|Its square is|" (:i * :i)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue