Math
2523. Closest Prime Numbers in Range
Given left and right, find a pair of primes num1 < num2 in [left, right] with minimum difference num2 − num1 (smallest num1 on ties). If no pair exists, return [−1, −1]. Get the primes in the range…
Loading…