Absolute laziest approach, 10 billion numbers entries laid out sequentially. At 2 bytes for each entry, that's only 20GB. That's less than I can fit in some fairly cheap consumer box.
Would that work? Just an array in C. Or are there interesting performance problems I'd be likely to run into?
Would that work? Just an array in C. Or are there interesting performance problems I'd be likely to run into?