In a loop I need to check if n index is a number in a range of thousands:
n
0...1000 1001...2000 2001...3000 and so on
How can