I like the general idea of it--improving the algorithm incrementally, finding exception cases, but I wonder if there is a better example that could be used.
It seems to me that one either knows how to use logarithms or not, and thus students would either skip to the final solution, or be stuck until having the answer given to them.