Keval and Co-primes
CodeChefOpen on judge ↗
Keval has a knack for numbers. He is always fascinated by them. One type of numbers, that intrigue him the most are the prime numbers. He always loves pairs of numbers which are co-prime to each other. He has now discovered a problem he needs to solve. But, of course, as all the characters in a coding question, he is lazy AF. But lucky him, that you have been appointed his PA. He came across a pro
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