This generates in memory a list of 65536 elements, then iterates over them.
Please use > and < instead, it will be 655360 times faster.