The tests that I have in mind are all the same. Multiply the 1s place by a number that is smaller than 1/2 the prime whose div'ity being tested. Then add (or subtract) to the remaining digits. If the result is div by the prime in question, so is the original number. Here are a few more tests.

Comments