The easiest way would be to use a binary comparator, which would set its output high, once the numbers exceed the set value, which could be determined by BCD rotary switches.
Of course it would be even easier to use a microcontroller, but this is probably an educational project to learn about logic gates, so that would defeat the purpose.