Problems in Project Euler using C#