answer to euler problem#1