I suspect that there is a way to code this function in VHDL or Verilog with CASE statements.
The Resulting "HEX" Output would then be assigned for each CASE or Range of Values.
What is the Range of Inputs that you are looing to build the Look Up Table for?
You mention the example of from 10 to 100 the result is all the same, are you talking about from 1 to 1000 or from 1 to 65K inputs?
Is the Result a single HEX value?
Answer that and I suspect some good programmer will give you an HDL syntax that will work for you.
Also state your preferred language.