← All problemsSign in

Sets and Prime Numbers

###Problem Statement Tony Stark, lost in space after losing the battle against Thanos, is planning to make a new suit. For his new super duper ultra high-tech weapon Thanos Destructor 9000X, he asks help from her virtual assistant FRIDAY. He gives FRIDAY a number $N$ and asks her to make a set $S$ of the prime factors of $N$. Then, he gives her $m$ more numbers, $M_1$, $M_2$.......$M_m$ asking h

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