Co-prime Leela 1
CodeChefOpen on judge ↗
A co-prime pair of two numbers p1 and p2 will be given as input and You have to find how many distinct numbers in a given range of N1..N2 (such that N1 <= n <= N2) which are divisible by either any of the number or both those two numbers. ###Input: - First line will contain $p1$ $p2$, two space separated co-prime numbers. - Second line will contain $N1$ $N2$, the range. ###Output: Output in a
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start