Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var test = new Problem41();

            Console.WriteLine(test.FindMedian());
            test.AddNum(1);
            test.AddNum(0);
            Console.WriteLine(test.FindMedian());
            test.AddNum(0);
            Console.WriteLine(test.FindMedian());
            test.AddNum(3);
            Console.WriteLine(test.FindMedian());
        }
        public void Problem41_Return_Result_7652413()
        {
            long act = Problem41.PandigitalPrime();

            Assert.True(act.Equals(7652413));
        }