There are 9,000 four-digit numbers (in base 10, decimal) and 10,000 (non-negative) numbers with no more than four digits, so a table with more than 10,000 bits is sufficient to indicate for each of these numbers whether it is present (bit bit nset or no?). For five-digit numbers - 90,000 of them - you will need a larger table.
- ", " ", ", , - , . , , () , . .