Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Babbage-problem/Red/babbage-problem.red
Normal file
11
Task/Babbage-problem/Red/babbage-problem.red
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Red []
|
||||
number: 510 ;; starting number
|
||||
;; repeat, until the last condition in the block is true
|
||||
until [
|
||||
number: number + 2 ;; only even numbers can have even squares
|
||||
;; The word modulo computes the non-negative remainder of the
|
||||
;; first argument divided by the second argument.
|
||||
;; ** => Returns a number raised to a given power (exponent)
|
||||
269696 = modulo (number ** 2) 1000000
|
||||
]
|
||||
?? number
|
||||
Loading…
Add table
Add a link
Reference in a new issue