Separate method for printing page from printPrimes()

Separating the printPage function from PrintPrimes() by creating a new method named printPage() which takes pageNumber and pageOffset as parameters. By doing this the printPrimes method will only handle manipulation of pageNumber and pageOffset and the use of printPage(), which makes the code more understandable.