← All problemsSign in

Freaks of the Number Universe

Now it has all come down to choosing the best planets for our future to settle in. Dr Brand makes an interesting observation: any constellation that forms a k-primal tree when the closest stars are connected, will have an abundance of resources. - A tree is called $0$-primal, if it consists of a single isolated root node. - Call a tree $k$-primal if it consists of a root node having a prime numb

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start