If we have 2^10, it´s distance from 10^3 is 24 (as 2^10=1024 and 10^3=1000).

Is there any other natural number pair x,y which results distance between 2^x and 10^y to be only 2?

Is there any formula, where to insert desired distance and find x and y as a result, or does it only requires raw computer power to find an answer?

(Wink)