Introduced brackets around N < indexOfPrimeToSquare in order to increase visibility

Having the brackets around that comparison makes it clearer that the logical result of the comparison is ANDed with the logical value of isPrime