J -> currentNumber, and updated primes.txt

Now, primes.txt contains the correct output.
JPRIME -> isPrime
Put N into a for loop (instead of while loop)

A for loop makes more sense, since N is incremented after every iteration.
ORD -> indexOfSquaredPrime
SQUARE -> nearestSquaredPrime