Untitled

 avatar
unknown
plain_text
5 months ago
281 B
2
Indexable
// Online C++ compiler to run C++ program online
#include <iostream>

using namespace std;
int main() {
int n;
cin>>n;
vector<int>pds(n);
for(int i = 2; i <= n; ++i){
    if(pds[i] == 0){
        for (int j = 0; j <= n; ++j){
            pds[j]+;
        }
    }
}
    return 0;
}
Editor is loading...
Leave a Comment