add problem 13 to php, python, and ruby