Project Euler problems in C#