News for hackers. Stuff that matters.
Re:Testing for Divisibility by 19 by raverbashing on Monday November 23, 2020 @07:28AM (#25186027)
No bitmask will give you divisibility by 3 in base 16

In this case (division by 3 in mod 16) is the same as base 10: if the sum of digits is divisible by 3 then it is divisible (and the "extra digits" are 'c' and 'f')

Examples:

0x3c (60) -> sum = 0xf (divisible)

0x2d (45) -> sum = 0xf (divisible)

There are no comments on this comment yet.