Manuals/calci/PERFECTNUMBERS

From ZCubes Wiki
Revision as of 00:40, 13 March 2017 by Jayaram (talk | contribs)
Jump to navigation Jump to search
PERFECTNUMBERS (Upto,StartFrom)


  • is the maximum number limit.
  • is the minimum number limit.

Description

  • This function returns the list of Perfect numbers.
  • In PERFECTNUMBERS (Upto,StartFrom),Upto is the Maximum number limit to display and Start from is the Minimum number to start Perfect number list.
  • Perfect number is a positive integer which is equal to the sum of its proper divisors.
  • The smallest perfect number is 6, which is the sum of 1, 2, and 3.

Examples

  1. PERFECTNUMBERS(14,2) = 6
  2. PERFECTNUMBERS(900,54) = 6 28 496
  3. PERFECTNUMBERS(-567,0) = NaN

See Also

References

[Perfect number]