Untitled
unknown
plain_text
a year ago
281 B
5
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