← All problemsSign in

Santa Favorite Numbers

Santa Claus loves to play with numbers since childhood. Santa’s mother has given him an array of numbers and tells him to choose any two number where both has three factors separately. For e.g.: - If the array is [ 5, 6, 25, 4], then factors of 25 are 1, 5, 25, and factors of 4 are 1, 2, 4. So Santa can choose both numbers 25 and 4. Santa asks you to tell him is it possible to choose any two 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