
1994. Intel ships the Pentium, and every so often it divides two numbers and hands back a slightly wrong answer. Intel's official line: this happens once every 27000 years, so relax. Then a math professor goes public, the story explodes, and Intel eats a 475 million dollar recall. The root cause was a handful of missing entries in a lookup table burned into the silicon. Same idea here, much smaller table. Find the wrong cells and fix them.
Repair this code
Repair the division lookup table so every entry equals 840 divided by the divisor.
Steps
$ divide_840(1)
840
$ divide_840(3)
280
$ divide_840(5)
168
Expected files
Allowed functions
None. Write every helper yourself.
Loading solutions...