Exemplo n.º 1
0
        public ulong Run(ulong targetNumber)
        {
            var primes = new PrimeNumbers();

            var primeFactors = primes.GetPrimeFactors(targetNumber);

            return(primeFactors.Max());
        }
Exemplo n.º 2
0
 public void GetPrimeFactors(ulong targetNumber, ulong[] expectedPrimeFactors)
 {
     Assert.Equal(_primeNumbers.GetPrimeFactors(targetNumber), expectedPrimeFactors);
 }