C# Euler problems