private static ulong Solution() { return(new TriangleSequence() .First(x => Factorization.GetCountOfDivisors(x) > 500)); }
public void GetCountOfDivisors_Examples_AreCorrect(ulong number, ulong expectedCount) { var actual = Factorization.GetCountOfDivisors(number); Assert.AreEqual(expectedCount, actual, "Count of divisors for {0} is wrong.", number); }