Beispiel #1
0
 internal static bool IsAbundant_Digit(int value)
 {
     if (Divisors.SummDivisor(value) > value)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
            internal static int Amicable_numbers(int value)
            {
                int ammDigits = 0;
                int temp2     = 0;

                ammDigits = Divisors.SummDivisor(value);
                temp2     = Divisors.SummDivisor(ammDigits);
                if (temp2 == value)
                {
                    return(ammDigits);
                }
                else
                {
                    return(0);
                }
            }