Anonymous user
Abundant, deficient and perfect number classifications: Difference between revisions
Abundant, deficient and perfect number classifications (view source)
Revision as of 20:08, 3 January 2024
, 4 months ago→{{header|Elena}}
(Javascript →ES6: Trans Lua - use strict mode) |
imported>Arakov |
||
Line 2,436:
=={{header|Elena}}==
{{trans|C#}}
ELENA
<syntaxhighlight lang="elena">import extensions;
Line 2,446:
int[] sum := new int[](bound + 1);
for(int divisor := 1
{
for(int i := divisor + divisor
{
sum[i] := sum[i] + divisor
Line 2,454:
};
for(int i := 1
{
int t := sum[i];
|