Project Euler Problem 7 Solution C#