Changed WHILE loop to FOR loop in calculateOddPrimes()

The WHILE loop was not set up very clearly. Changes include changing the variable "N" to "i", and being a FOR loop, it is initialized as expected, instead of 10 lines before the loop.