private static void PrintPrimaryNumbers() { for (int i = 0; i < 10; i++) getPrimes(i * multiplier + 1, i * multiplier * 10) .ToList(). ForEach(x => Trace.WriteLine(x)); } public static IEnumerable<int> getPrimes(int min, int count)