If both A and B is reduced to sqrt ( A * B )
let ans3 = getMinOperations ( Math . floor ( Math . sqrt ( A * B ) ) , Math . floor ( Math . sqrt ( A * B ) ) , A , B , dp ) ; if ( ans3 != Number . MAX_SAFE_INTEGER ) { ans3 += 2 ; }