Refactored printPrimes method: renamed rowOffset and C to rowsPrinted and colsPrinted, renamed pageOffset to currentPrime. Changed for loop logic to iterate while rowsPrinted and colsPrinted are less than rowsPerPage and colsPerPage. Changed currentPrime to increment by one after every prime is printed (instead of incrementing by a page full of primes after a whole page is pritned) - this way the element being printed in listOfPrimes array can be indexed by currentPrime variable. Simplified pageNumber incrementation syntax.