In which structure would it be more expedient to store a large (up to 6 million values) list of natural numbers so that you can quickly find that one random natural number falls into this list?
I tried to store everything as strings and use the sorted TstringList without repetitions:
a.Sorted:=True; a.Duplicates:=dupIgnore; and in it already to check hit through Find :
a.Find(MyNumber); but I think this is not the best way.