SRT Solutions

Blogs

Browse by Tags

  • Euler Problem 10

    Patrick posted his solution earlier this week. I figure it was time to add mine. Also, Octavio Hernandez pointed out in the comments to problem 8 that he had discussed similar code constructs in his blog a while back. Problem 10 asks for the sum of all primes less than 2 million. It's also one line...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Sun, Aug 31 2008
  • Euler Problem 7

    Yes, it's true that I've been very lax in working on these problems. It's been a combination of the day job, finishing all the editing tasks on "More Effective C#", and actually trying to keep the personal life intact. The 7th problem is quite straightforward: find the 10,001st...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Thu, Aug 14 2008
  • Discussion on Project Euler Problem 2

    The second Euler problem asks you to find the sum of all even valued terms in the Fibonacci sequence which do not exceed 4,000,000. Let's look at the solution from the outside in. Here's the query that finds the answer: var EvenFibNumbers = (from n in Enumerable.Range(1, MAX) let value = FibonacciSequence...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Thu, Mar 27 2008
  • Project Euler: Problem 1

    I am starting a new series. A friend recently pointed me at the Project Euler problems. You can see the project here: http://projecteuler.net/ As I finish them, I'll post an explanation of the problem and the code here. I've also posted the code on MSDN Code Gallery. As I finish a week's...
    Posted to Bill Blogs in C# (Weblog) by wwagner on Tue, Mar 25 2008

In our last colurm, we wrote about how technical mentors can benefit companies ( Ann Arbor Business Review, May 22, 2008 ). In this installment, we're...