brute force to find smallest multiple