← All problemsSign in

Nice subsets

Mikahs is fond of mathematics and his favourite topic is Sets. He boasts of his knowledge in this topic and Ramu the mathematician is jealous of Mikahs. To take him down, Ramu prepares a tough challenge for Mikahs. He first describes a new quantity for numbers discovered by him. For a number X, the product of prime divisors of X is defined as the Niceness value of X by Ramu. For Eg. X = 36, 36 =

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