added solution for euler #3