Project Euler Problems

When I’ve got time I enjoy working through the problems listed at Project Euler. Here are my solutions. These are all written in C# .Net 3.5. Every solution is written as an individual class meant to be called statically from the below timer in a console application.

class Program
	{
		static void Main(string[] args)
		{
			Stopwatch stopwatch = new Stopwatch();
 
			stopwatch.Start();
 
			//ProjectEuler_001.Solution_1();
			//ProjectEuler_002.Solution_1();
			//ProjectEuler_003.Solution_1();
			//ProjectEuler_003.Solution_2();
			//ProjectEuler_004.Solution_1();
			//ProjectEuler_004.Solution_2();
			ProjectEuler_005.Solution_1();
 
			stopwatch.Stop();
 
			Console.WriteLine("------------------------------");
			Console.WriteLine("Elapsed Milliseconds: {0}", stopwatch.ElapsedMilliseconds);
			Console.ReadLine();
		}
 
	}

Below are links to my posts for each solution. You’ll notice that some of the problems have multiple solutions. In some instances I didn’t like my first solution, or later thought of a better way of doing it, so I created a Solution_2() in addition to Solution_1().

Problem 1

  • del.icio.us
  • Digg
  • DotNetKicks
  • Google Bookmarks
  • Reddit
  • StumbleUpon