public void GivenExample() { var factorer = new TrialDivisionFactorer(); var problem = new Problem012(factorer); var answer = problem.FindFirstNumberInSequenceWithMoreThanXFactors(5); Assert.AreEqual(28, answer); }
public void Solution() { var factorer = new TrialDivisionFactorer(); var problem = new Problem012(factorer); var answer = problem.FindFirstNumberInSequenceWithMoreThanXFactors(500); Console.WriteLine("Problem 012: {0}", answer); Assert.AreEqual(76576500, answer); }