solve project euler 1 in c