problem 5 {smallest multiple; fix brute force} -> ruby