Introduction

Congratulations — you have reached the final lesson of Divisibility Shortcuts! Over the previous four lessons you built a complete toolkit of quick tests: last-digit checks for 22, 55, and 1010; digit-sum checks for 33 and 99; a last-two-digits check for 44; and a combined two-step check for . Each rule let you spot a specific divisor without performing long division. Now it is time to bring and practice running the full set of tests on a single number, so you can quickly identify every divisor from that applies.

Your Complete Divisibility Toolkit

Think of all seven rules as tools on a belt. Each one answers a single yes-or-no question about a number, and each one takes only a few seconds. The real power appears when you use them all at once on the same number, because in just a minute or two you can learn a great deal about how that number can be split into equal groups.

Here is the full set for easy reference:

DivisorQuick Test
2Last digit is even (0,2,4,6,80, 2, 4, 6, 8)
3Digit sum is divisible by 33
4Last two digits form a number divisible by 44
A Systematic Approach

When you need to test a number against all seven divisors, it helps to follow a consistent order rather than jumping around randomly. Here is one efficient sequence:

  1. Look at the last digit. This single digit immediately tells you about 22, 55, and 1010.
  2. Look at the last two digits. This tells you about 44.
  3. Add up all the digits. The digit sum tells you about 33 and .
Worked Examples: Running All Seven Tests

Let's apply the full scan to the number 2,340.

Step 1 — Last digit. The last digit is 00. Because 00 is even, the number is divisible by 22. Because the last digit is 00, it also qualifies for 55 and 1010. Three checks done in a single glance.

When a Simpler Rule Passes but a Stricter One Does Not

As you work through these tests, you will notice that some rules are related but not equivalent. Two pairs are especially important to keep straight.

Divisibility by 2 versus 4. Every number divisible by 44 is automatically divisible by 22, because 4=2×24 = 2 \times 2. However, the reverse is not true. Consider 3838: the last digit is (even), so it passes the test for , but remainder , so it fails the test for . Being even means the number has factor of ; divisibility by requires factors of .

Real-World Application: Splitting a Delivery

Imagine you manage a small shop and a shipment of 504 items arrives. You want to know which group sizes from {2,3,4,5,6,9,10}\{2, 3, 4, 5, 6, 9, 10\} would split the delivery into perfectly equal bundles with nothing left over.

  • Last digit: 44. Even → divisible by 22. Not or → not divisible by or .
Conclusion and Next Steps

In this lesson you learned how to run all seven divisibility tests on a single number in one efficient pass. By checking the last digit first (for 22, 55, 1010), then the last two digits (for 44), then the digit sum (for 33 and 99), and finally combining the and results (for ), you can quickly identify every applicable divisor without performing a single long division. You also saw that passing a simpler rule — like divisibility by — does not automatically guarantee its stricter relative, divisibility by , and the same goes for and .

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal