Exemplo n.º 1
0
 public static bool IsAbundant(int number)
 {
     return(Divisors.ProperDivisors(number).Sum() > number);
 }
Exemplo n.º 2
0
        public static bool IsAmicable(long number)
        {
            var first = Divisors.ProperDivisors(number).Sum();

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