Removed the anonymous inner class and made getAllPrimesBelow print out only numbers below n.