Typically I would do for i=1, number do but that seems to go very slowly. Is there a faster way to go through a huge set of numbers? Any help is appreciated!
No, not really. A “for” loop’s entire purpose, is to iterate through things. In terms of speed, nothing is going to beat it.
I hope there is not a problem in your code, because the for loop itself is not slow, and loops over in practically no time at all. The only thing that can take noticeable time, is what you have inside the loop.
If you’re really worried about speed you could type everything out yourself. I don’t suggest that in the slightest because (a) why waste your time and (b) it’s probably nanoseconds, even if you loop 1000 times and instead type it out you save barely any time at all. You’ll also just make the entire script clunky doing things this way.
Generally optimizations occur inside the loop like ^ @ExcessEnergy said.