Ejemplo n.º 1
0
        public void TestGet6thPrime()
        {
            int  n      = 6;
            long result = Prob7.GetNthPrime(n);

            Assert.AreEqual(13, result);
        }
Ejemplo n.º 2
0
        public void TestSGet10001stPrime()
        {
            int  n      = 10001;
            long result = Prob7.GetNthPrime(n);

            Assert.IsTrue(result > 1);
            Assert.AreEqual(104743, result);
            TestUtils.WriteOut($"10,001st prime is {result}.");
        }