示例#1
0
        private static void TestMax(int thisNumber, int expected)
        {
            int[] factors = new Factors().GetPrimeFactorsOf(thisNumber);
            int   max     = factors.Max();

            max.Should().Be(expected);
        }
示例#2
0
        private static void TestMax(int thisNumber, int expected)
        {
            int[] factors = new Factors().GetPrimeFactorsOf(thisNumber);
            int max = factors.Max();

            max.Should().Be(expected);
        }
示例#3
0
        static void Main(string[] args)
        {
            int[] factors = new Factors().GetPrimeFactorsOf(600851475143);
            int   max     = factors.Max();


            Console.WriteLine("The result is: {0}", max);
            Console.ReadLine();
        }
示例#4
0
        static void Main(string[] args)
        {
            int[] factors = new Factors().GetPrimeFactorsOf(600851475143);
            int max = factors.Max();


            Console.WriteLine("The result is: {0}", max);
            Console.ReadLine();
        }