Project Euler, implemented in C#