Delete Simple Prime Generator in c++