Manuals/calci/PERFECTNUMBERS

Revision as of 06:28, 9 March 2017 by Jayaram (talk | contribs)
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]


List of Main Z Functions

Z3 home