Prime Game
CodeChefOpen on judge ↗
Alice and Bob recently decided to compete against each other with their ratings. The one with greater rating wins. However to ensure victory, they can ask any of their friend to compete instead. There are a total of **N** coders (excluding Alice and Bob). Two coders are friends if both have at least **K** prime factors and have the same **K** th smallest prime factor in their factorization. (e
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