Added a new method setFormat(int PAGEOFFSET) which acts as a helper method to printPrimes and sets and prints the format given the PAGEOFFSET
Added few comments, and changed some variables - makes understanding code easier for a new reader by explaining the process which the program follows