Perfect numbers: Difference between revisions
Content added Content deleted
m (→Classic REXX version of ooRexx: added some whitespace.) |
(Add note about the minimum size of an odd perfect number. It's so large that most of the programs here can safely ignore them.) |
||
Line 3: | Line 3: | ||
[[wp:Perfect_numbers|A perfect number]] is a positive integer that is the sum of its proper positive divisors excluding the number itself. Equivalently, a perfect number is a number that is half the sum of all of its positive divisors (including itself). |
[[wp:Perfect_numbers|A perfect number]] is a positive integer that is the sum of its proper positive divisors excluding the number itself. Equivalently, a perfect number is a number that is half the sum of all of its positive divisors (including itself). |
||
Note: The faster [[Lucas-Lehmer test]] is used to find primes of the form 2<sup>''n''</sup>-1, all ''known'' perfect numbers can be derived from these primes using the formula (2<sup>''n''</sup> - 1) × 2<sup>''n'' - 1</sup>. It is not known if there are any odd perfect numbers. |
Note: The faster [[Lucas-Lehmer test]] is used to find primes of the form 2<sup>''n''</sup>-1, all ''known'' perfect numbers can be derived from these primes using the formula (2<sup>''n''</sup> - 1) × 2<sup>''n'' - 1</sup>. It is not known if there are any odd perfect numbers (any that exist are larger than 10<sup>2000</sup>). |
||
'''See also''' |
'''See also''' |
||
* [[Rational Arithmetic]] |
* [[Rational Arithmetic]] |
||
*[[oeis:A000396|Perfect numbers on OEIS]] |
* [[oeis:A000396|Perfect numbers on OEIS]] |
||
* [http://www.oddperfect.org/ Odd Perfect] showing the current status of bounds on odd perfect numbers. |
|||
=={{header|Ada}}== |
=={{header|Ada}}== |