Marks :100
: 0 | : 1
Given a range L and R and an integer K find all the groups in the given range having at least K Consecutive integer
The first line of input contains L, R,K ($$$ 1 \le L \le R \le 10^5 $$$)
print all groups having K consecutive integers
500 650 10
510 520 11 524 540 17 620 630 11
For test case1:
The prime number between 500 to 600 are : (503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647)
So between them the consecutive composite number which are greater than K are 510-520,520-540 and 620-630.
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.