PrimeWorker is a C++ Class that calculates prime numbers