Proper divisors: Difference between revisions

Line 4,328:
#Although there are two, the task only asks for one suitable number so that is all we give.
#Similarly, we have seen no need to make sure that "divisors" is only a plural when it should be.
#Be aware that this solution reliesuses on the difference betweenboth length and lengths. It would not work if the index of the
#desired number was not also the number itself. However, this is always the case.
mostProperDivisors<-function(N)
{
331

edits