public ulong Run(ulong targetNumber) { var primes = new PrimeNumbers(); var primeFactors = primes.GetPrimeFactors(targetNumber); return(primeFactors.Max()); }
public void GetPrimeFactors(ulong targetNumber, ulong[] expectedPrimeFactors) { Assert.Equal(_primeNumbers.GetPrimeFactors(targetNumber), expectedPrimeFactors); }