Successfuly completed project euler #4