added euler1.cpp

completed euler problem 1.