Roll Number System
CodeChefOpen on judge ↗
There are $N$ students in a class and every student want his/her roll number is not divisible by other students roll number. So, now as you are the class teacher (not in real but u can think like a virtual teacher) it is your task to give them roll numbers in such way that the above problem is solved. Find the Roll number of kth student. - $NOTE$ – As the Roll no 1 is topper of the class so the r
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