func_code_string: #include <bits/stdc++.h>   using namespace std;   long long spf[101];   long long arr[100001];   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     long long n;     cin >> n;     long long sum = 0;     for (int i = 0; i < n; i++) {       cin >> arr[i];       sum += arr[i];     }     long long sum1 = sum;     sort(arr, arr + n);     for (int i = 0; i < n; i++) {       for (long long j = 1; j <= arr[i]; j++) {         if (arr[i] % j == 0) {           long long sum2 = sum + arr[0] * (j - 1) + arr[i] / j - arr[i];           sum1 = min(sum2, sum1);         }       }     }     cout << sum1;     return 0;   }   