projecteuler.net problem 7 solution in C#