← All problemsSign in

Indivisible

CodeChefRating 787Open on judge ↗

Alice thinks Bob has very weak math skills. Alice gave Bob three numbers $A, B, $ and $C$ and challenged him to find any **positive integer** $K$ **strictly less than** $100$ such that *none* of the three numbers are divisible by $K$. Help Bob find one such integer $K$. Note that there can be multiple correct values for $K$, you need to output just one. Under the given constraints, a vali

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