Пример #1
0
 public static bool IsAbundant(int number)
 {
     return(Divisors.ProperDivisors(number).Sum() > number);
 }
Пример #2
0
        public static bool IsAmicable(long number)
        {
            var first = Divisors.ProperDivisors(number).Sum();

            return(first != number && number == Divisors.ProperDivisors(first).Sum());
        }