#pragma once #include class PrimeNumberGenerator { public: explicit PrimeNumberGenerator(int start): current((start > 1) ? start : 2) {} int GetNextPrime() { while (!this->isSimple()) { this->current++; } return this->current++; } };