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