More Fun
CodeChefOpen on judge ↗
Ankur and his friend Abhishek loves playing with numbers. One day while playing with numbers Ankur gives Abhishek a number $N$ and ask him to count all the integers between $L$ and $R$ ( both inclusive ) which are Non-coprime to $N$. As Abhishek is very good with numbers he gives him the correct count as $C$. After doing all the hard work in calculating $C$ Abhishek wants more fun and he asks Anku
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