func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     std::ios_base::sync_with_stdio(false);     vector<long long int> v;     long long int n, i;     cin >> n;     if (n == 1) {       cout << 1;       return 0;     }     for (long long int i = 1; i * i <= n; ++i) {       if (n % i == 0) {         if (i * i == n)           v.push_back(i);         else {           v.push_back(i);           v.push_back(n / i);         }       }     }     sort(v.begin(), v.end());     if (v.size() == 2)       cout << n;     else {       long long int flag = 0;       if (v.size() == 3) {         if (v[1] / v[0] != v[2] / v[1]) {           cout << 1;         } else           cout << v[1];       } else {         long long int ans = v[1] / v[0];         for (i = 1; i < v.size() - 1; i++) {           if (v[i + 1] != ans * v[i]) {             flag = 1;             break;           }         }         if (flag == 1)           cout << 1;         else {           cout << v[1];         }       }     }     return 0;   }   