public void Get10001stPrime() { var findPrime = new PrimeHelper(); var result = findPrime.GetNthPrime(10001); Assert.True(result == 104743); }
public void GetNthPrime(uint nthPrime, uint target) { var findPrime = new PrimeHelper(); var result = findPrime.GetNthPrime(nthPrime); Assert.True(result == target); }
public void GetNthPrime_ReturnsCorrectResult(int number, int expectedResult) { PrimeHelper.GetNthPrime(number).Should().Be(expectedResult); }
public long ComputeSolution() { return(PrimeHelper.GetNthPrime(NUMBER)); }