public void Test1(long number, long expectedlargestPrime) { var sut = new E003Largestprimefactor(); var largestPrim = sut.Largest(number); Assert.Equal(expectedlargestPrime, largestPrim); }
public void Solution() { var sut = new E003Largestprimefactor(); var max = sut.Largest(600851475143); Assert.Equal(6857, max); /* * Congratulations, the answer you gave to problem 3 is correct. * * You are the 476200th person to have solved this problem. */ }