public void SumOfNonAbundant() { AbundantNumbers a = new AbundantNumbers(); var abundants = a.GetAbundatnNumbers(100); var sum = a.SumOfNonAbundant(100, abundants); Assert.AreEqual(2766, sum); }
static void Main(string[] args) { var a = new AbundantNumbers(); var abundantNumbers = a.GetAbundatnNumbers(28123); var sum = a.SumOfNonAbundant(28123, abundantNumbers); Console.WriteLine(sum); Console.ReadLine(); }