Two lessons:
Order of conditions matters. Check the most specific case first (divisible by both) before less specific cases (divisible by one).
If divides and divides , then divides (when and are coprime). This lets you combine checks.
summary
Two lessons:
Order of conditions matters. Check the most specific case first (divisible by both) before less specific cases (divisible by one).
If divides and divides , then divides (when and are coprime). This lets you combine checks.