Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Divisible by 7 (2016). Parent comment
abcabc = 1001 × abc = 7 × 11 × 13 × abc
That also means that, to check divisibility of abcdef by 7, 11, or 13, compute |def-abc| and check whether that is divisible by 7, 11, or 13 since
abcdef = abcabc + (def - abc) = defdef + 1000 × (abc-def)
There are no comments on this comment yet.
That also means that, to check divisibility of abcdef by 7, 11, or 13, compute |def-abc| and check whether that is divisible by 7, 11, or 13 since
Similarly, since 10001 = 73 × 137, abcdabcd always is divisible by 73 and 137.