The i+=1 is placed correctly at the end of the loop.
I don't know about the continue, though. Seems to be a semanticchoice, not one for the translator.