Didn't we have exactly this conversation several months ago? At the time I said that it is straightforward to write an integer square root function, and by that I meant >> in Erlang <<, no port programs needed.