Anonymous user
Abundant, deficient and perfect number classifications: Difference between revisions
Abundant, deficient and perfect number classifications (view source)
Revision as of 22:07, 7 April 2015
, 9 years ago→version 1: align whitespace in a comment.
m (→version 1: align whitespace in a comment.) |
|||
Line 689:
if x//j==0 then s=s+j+ x%j /*add the two divisors to the sum*/
end /*j*/ /* [↑] % is REXX integer divide*/
/* [↓] adjust for square.
if j*j==x then s=s+j /*Was X a square? If so, add √x.*/
return s /*return the sum of the divisors.*/</lang>
|