public void NEW() { var result = Problem642.SolutionForArbitraryInputUsingSieve(10); Assert.AreEqual(32, result); }
[TestCase(1000000, 64937323262)] //10^6, 2.5 sec //[TestCase(10000000, 5494366736156)] //10^7, 1 min 6 sec //[TestCase(100000000, 476001412898167)] //10^8, 29 min 36 sec public void SolutionForArbitraryInputUsingSieve_TestExample_ReturnsResult(long n, long value) { var result = Problem642.SolutionForArbitraryInputUsingSieve(n); Assert.AreEqual(value, result); }