Chaned method name of printPrimes() to printToScreen() to avoid confusion with method name and class name.