Project Euler solutions in C#