change primeIndex=primeIndex +1 -> primeIndex ++

This change is stylistic preference. primeIndex++ looks much nicer