PrimeNumbers can inherit from SequenceGeneratorBase, reduces duplicate code