Given a 4-bit number in a register A, store the square root of that number, rounded down, in a 2-bit register B. The registers can be made up of any combination of bits and gear bits and put anywhere you like. You can choose the initial value of B.

Here is a possible starting template: https://www.lodev.org/jstumble/?board=f0z0ze0ff1faffbffee