add a solution for euler #7