About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
December 2015
<<November December January>>
Several solvers implemented a lookup table in three operations, like Dan Dima's solution
(90089088087086085084083000000000000000000000000082081080079078077076075074000000000000000000000073072071070069068067066065000000000000000000000000000000000000000000000000000000000000000000000122121120119118117116115000000000000000000000000114113112111110109108107106000000000000000000000105104103102101100099098097000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 / (1000 ** x)) modulo 1000.
Septimus G. Stevens VII suggested a smaller lookup table: x - (9592598315813 % (81 + (x & 112))).
Motty Porat used a similar approach with only 3 operations: x - (309276143438415101 mod (x | 1039)).
Yan-Wu He proposed another solution: ((0x010101010101 * x) & 0x20300080F0BF) modulo 513.