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, |
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 ''Abundant, Deficient and Perfect Number Classification'' |
||
[[http://rosettacode.org/wiki/Abundant,_deficient_and_perfect_number_classifications#Ada]] and the ''Amicable Pairs'' |
|||
[[http://rosettacode.org/wiki/Amicable_pairs#Ada]], we define this routine as a function of a generic package: |
|||
<lang Ada>generic |
<lang Ada>generic |