fix some file extensions
This commit is contained in:
parent
68f8f3e56b
commit
f3a896c724
789 changed files with 91 additions and 62 deletions
12
Task/Perfect-numbers/MAXScript/perfect-numbers.max
Normal file
12
Task/Perfect-numbers/MAXScript/perfect-numbers.max
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
fn isPerfect n =
|
||||
(
|
||||
local sum = 0
|
||||
for i in 1 to (n-1) do
|
||||
(
|
||||
if mod n i == 0 then
|
||||
(
|
||||
sum += i
|
||||
)
|
||||
)
|
||||
sum == n
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue