Hacker News new | ask | show | jobs
by Vvector 2199 days ago
It just eliminates the multiples of 2 and 3

6x ± 0: divisible by 2,3

6x ± 1: not divisible by 2,3

6x ± 2: divisible by 2

6x ± 3: divisible by 3

6x ± 4: divisible by 2

6x ± 5: modulus equivalent to 6x ± 1