← All problemsSign in

Reasonably Sound

We don't always know what mysteries keep getting solved over at the Department of Mathematics, but we're sure it's a lot of fun. In any case, they constantly need a programmer's help to solve some complex problems. And, what do you know, they need our help yet again! This is what they want you to solve. Given a set of $N$ pairs of numbers: - If one of the numbers is prime, and the other is e

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