abde2e44b21e21a00ec54754483b76c50f144984
Credit to https://lemire.me/blog/2019/02/08/faster-remainders-when-the-divisor-is-a-constant-beating-compilers-and-libdivide and https://github.com/Vrganj for the algorithm to determine a magic value to use for both division and mod operations This improves storage reads by up to 1.3x.
Languages
Java
100%