using System; using System.Collections.Generic; using System.Text; namespace Euler10 { class Program { //Calculate the sum of all the primes below two million. static void Main(string[] args) { int n = 2000000; Euler.Primer.FindPrimesUntil(n); long sum = 0; foreach (long l in Euler.Primer.Primes) sum +=l; Console.WriteLine("Sum of the prime <" + n + " :" + sum); Console.ReadLine(); } } }