Problem 1362 · Medium

Closest Divisors

Search down from the square root of num plus one and num plus two for the first divisor, which gives the closest pair.

Open the interactive visualisation