Number Planet
CodeChefOpen on judge ↗
Welcome to Planet Numero! In this land, numbers are people. All the factors of a number are its descendants. A and B are two such people who meet at a party. As they get to know each other they realise that they are in fact related!! In order to trace the common members of their family, they need your help. Identify the eldest descendent of both A and B and the youngest common ancestor they shar
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