Reordered statements in side of if statement for clarity
Added optional brackets for clarity
Changed do-while loop to while loop
Fixed error in calculatePrimes() that would remove 2 from the list
Actually wait on that
renamed some variable to match jave style guidelines
PAGENUMBER -> pageNumber
PAGEOFFSET -> pageOffset
ROWOFFSET -> rowOffset