Exemple #1
0
 public string Solve(SingleLimitProblemArgs arguments)
 {
     return(Primes.GetAllPrimes().Take((int)arguments.Limit).Last().ToString());
 }
        public void GetAllPrimes_ShouldReturnCorrectSequence(int count, long[] expectedValues)
        {
            var values = Primes.GetAllPrimes().Take(count);

            Assert.IsTrue(values.SequenceEqual(expectedValues));
        }