you are viewing a single comment's thread
view the rest of the comments
[–] 35 points 2 years ago (1 child)

Our plan to find the witch has worked, boys! Get her!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago

    For divisibility by 13, take the last number, multiply by 4 and add to the rest.

    For divisibility by 17, take the last number, multiply by 5 and subtract from the rest.

    For divisibility by 19, take the last number, multiply by 2 and add to the rest.

    In fact, you can adapt the method to check for divisibility by any prime number k.

  • source
  • parent