Add missing prime generator base class.
Implement simple first_n_primes generator.