private static int IntSqrt(int n) {
ArgumentOutOfRangeException.ThrowIfNegative(n);
for (int x = n; d != 0; d >>= 2)
public static void Main() {
var result = string.Join(Environment.NewLine, Enumerable
.Select(x => $"sqrt({x}) == {IntSqrt(x)}"));
Console.WriteLine(result);