I have several number ranges. Those ranges are not overlapping - as they are not overlapping, the logical consequence is that no number can be part of
If the total range of numbers is low, and you have enough memory, you could create a huge table with all the numbers.
For example, if you have one million of numbers, you can create a table that references the range object.