Пример #1
0
 static void Main(string[] args)
 {
     foreach (int factor in PrimeFactorsHelper.PrimeFactors(1000))
     {
         Console.WriteLine(factor);
     }
 }
Пример #2
0
        public void Test10()
        {
            var factors = PrimeFactorsHelper.PrimeFactors(10);

            Assert.True(Product(factors) == 10);
        }