예제 #1
0
 static void Main(string[] args)
 {
     Console.WriteLine(Multiplies.FindSum(1000));
     Console.WriteLine(MultipliesLINQ.FindSum(1000));
     Console.WriteLine(Fibonacci.FindSum(4000000));
     Console.WriteLine(Prime.FindLargestFactor(600851475143));
 }
예제 #2
0
        public void Visit(Multiplies bin)
        {
            var left  = bin.Left;
            var right = bin.Right;

            PrepareBinaryOperation(left, right);

            EmitStackDown("mul");
        }