Project Euler solutions in c#