Пример #1
0
        public long Answer(params long[] arguments)
        {
            MyMaths mm         = new MyMaths();
            long    awnser     = 0;
            bool    largeprime = false;

            int i = 0;

            while (!largeprime)
            {
                int prime = mm.PrimaAtPosition(i++);
                if (prime > 2000000)
                {
                    largeprime = true;
                    continue;
                }
                awnser += prime;
            }

            return(awnser);
        }