Proper divisors: Difference between revisions
Content added Content deleted
m (→{{header|Ada}}) |
m (→{{header|Ada}}) |
||
Line 180: | Line 180: | ||
=={{header|Ada}}== |
=={{header|Ada}}== |
||
The first part of the task is to ''create a routine to generate a list of the proper divisors''. To ease the re-use of this routine for other tasks, such as |
The first part of the task is to ''create a routine to generate a list of the proper divisors''. To ease the re-use of this routine for other tasks, such as ''Abundant, Deficient and Perfect Number Classification'' |
||
[[http://rosettacode.org/wiki/Abundant,_deficient_and_perfect_number_classifications#Ada]] |
[[http://rosettacode.org/wiki/Abundant,_deficient_and_perfect_number_classifications#Ada]], |
||
''Abundant Odd Number'' |
|||
[[http://rosettacode.org/wiki/Abundant_odd_numbers#Ada]], |
|||
and ''Amicable Pairs'' |
|||
[[http://rosettacode.org/wiki/Amicable_pairs#Ada]], we define this routine as a function of a generic package: |
[[http://rosettacode.org/wiki/Amicable_pairs#Ada]], we define this routine as a function of a generic package: |
||