uuhh ... okay #-o
so anyway, how should I fix that ?
The first part is easy. You must increase the loop-counter by 5.
for (long x = 0; x < MAXSIZE; x+=5)
In this case it would be enough (1000000 / 5 has no rest). But normally you must check if you can make all 5 (in this case) instructions and if not do the rest in a normal loop;