-
Greetings! I am Torleif Berger, 24 years old, a Seventh-Day Adventist and currently working as a software developer. Otherwise, not much to tell. Although I do juggle a bit...
-
Async Best practices Big Int Blogging Books C# Collatz conjecture Command line Embedded Resources Events Factorization Fibonacci Genders Hashing Java Latex Mac Math Media Men MySql Nerd Null NUnit Palindromes Plugins Primes Pythagorean triplets Python Sieve of Atkin Sieve of Eratosthenes Snippet Sorting Sql Subversion TDD Threading Tools Triangle Numbers Tutorial Unit-Testing Unix WinForms WordPress YouTube
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
-
Recent Posts
- Interlude
- How to check for duplicates
- Test-Driven Development: By Example
- How to test asynchronous events
- Generics and checking for null
- Project Euler: Problem 25
- Project Euler: Problem 16
- The Art of Unit Testing
- WordPress plugins I use and how one made my blog faster
- How to delete WordPress post revisions
- The Sieve of Atkin in C#
- The Sieve of Eratosthenes in C#
- Project Euler: Problem 14
- Project Euler: Problem 13
- Project Euler: Problem 12


















Project Euler (C#)
The motivation for starting Project Euler, and its continuation, is to provide a platform for the inquiring mind to delve into unfamiliar areas and learn new concepts in a fun and recreational context.
Well, I started solving some of them. And if you would like to see exactly how, then here it is: The complete source code. You have two ways of getting it:
It’s all programmed using C# and .Net Framework 3.5 and it can be opened, compiled, et cetera, using Microsoft Visual Studio 2008. A version of the free Express Edition probably also works, but I haven’t tried it.
To run my code you will need a test runner that supports NUnit. So, either compile it and use the regular NUnit test runner that comes with NUnit when you install it, or you can use the much more handy VS2008 Add-In called TestDriven.Net that I use.
Below is a list where you can see what problems I have solved so far. The ones with a link attached are also blogged about.
Problems