Finished the first euler problem