Create Simple Prime Generator in c++