This C# code solve the problem number 1 which published at projecteuler.net.