func_code_string: #include <bits/stdc++.h>   using namespace std;   int ans[1005];   void calc() {     int i, j;     for (i = 2; i < 1000; i++) {       if (ans[i] == 0) {         ans[i] = 1;         int k = i;         for (j = 2; j <= 10; j++) {           if (k * i < 1000) {             ans[k * i] = 1;             k = k * i;           } else             break;         }         for (j = i + i; j <= 1002; j += i) {           if (!ans[j]) ans[j] = -1;         }       }     }   }   int main() {     calc();     int n, i;     cin >> n;     if (n == 1) {       cout << 0;       return 0;     }     vector<int> v;     for (i = 2; i <= n; i++) {       if (ans[i] == 1) v.push_back(i);     }     cout << v.size() << endl;     for (i = 0; i < v.size(); i++) {       cout << v[i] <<    ;     }     return 0;   }   