Manuals/calci/PERFECTNUMBERS

From ZCubes Wiki
Revision as of 16:22, 29 November 2018 by Devika (talk | contribs) (→‎Examples)
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

Related Videos

Perfect Numbers

See Also

References

[Perfect number]