#include<iostream> using namespace std; main() { int primes,count=0,remNum=2,current=2; cout<<"how many primes can i find for you?"; cin>>primes; while(count<primes) { if(current=remNum) { cout<<current<<endl; current++; remnum=2; count++; if(current%remnum=0) { } remnum++; return 0; }
if
if(current=remNum)
==
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)