ickplant@lemmy.world to Lemmy Shitpost@lemmy.world · 1 year agoPaniki.postimg.ccimagemessage-square132fedilinkarrow-up11.29K
arrow-up11.29KimagePaniki.postimg.ccickplant@lemmy.world to Lemmy Shitpost@lemmy.world · 1 year agomessage-square132fedilink
minus-squareKaryoplasma@discuss.tchncs.delinkfedilinkarrow-up3·1 year agoFor 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.
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.