public void TestFindLargestPrimeFactorOf7245() { long testNumber = 7245; long result = PrimeSieve.findLargestPrimeFactor(testNumber); long expected = 23; Assert.AreEqual(expected, result); }
public void TestFindLargestPrimeFactorOf600851475143() { long testNumber = 600851475143; long result = PrimeSieve.findLargestPrimeFactor(testNumber); long expected = 6857; Assert.AreEqual(expected, result); }
public void TestFindLargestPrimeFactorOf11() { long testNumber = 11; long result = PrimeSieve.findLargestPrimeFactor(testNumber); }