예제 #1
0
 public void GivenExample()
 {
     var factorer = new TrialDivisionFactorer();
     var problem = new Problem012(factorer);
     var answer = problem.FindFirstNumberInSequenceWithMoreThanXFactors(5);
     Assert.AreEqual(28, answer);
 }
예제 #2
0
 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);
 }