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)); }