Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
7
Task/Perfect-numbers/Phix/perfect-numbers.phix
Normal file
7
Task/Perfect-numbers/Phix/perfect-numbers.phix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function is_perfect(integer n)
|
||||
return sum(factors(n,-1))=n
|
||||
end function
|
||||
|
||||
for i=2 to 100000 do
|
||||
if is_perfect(i) then ?i end if
|
||||
end for
|
||||
Loading…
Add table
Add a link
Reference in a new issue