It's like git bisect for numbers:


Known good:

Known bad:


Next test: 50


Result:

Test log: