← Sprinklr questions
CodingMedium

Find Integers X and Y for LCM Range

Filed under Sprinklr

The question

Given two integers l and r, find two integers x and y such that l <= x < y <= r and l <= LCM(x, y) <= r, or return -1 if impossible.

No write-up yet. Related questions below have one.

Related Sprinklr questions

Collected from public candidate posts and coding forums. Updated Nov 2026.