Exemplo n.º 1
0
        public static int GetLowestDivisorCount()
        {
            foreach (var number in numbersVariations)
            {
                numberDivisorsDictionary.Add(GetNumberOfDivisors(number), number);
            }

            var minKey = numberDivisorsDictionary.Min(x => x.Key);

            return(numberDivisorsDictionary[minKey].Min(x => x));
        }