#include #include using namespace std; long long Arr[102]; vector pr[102]; int main() { ios_base::sync_with_stdio(false); int n; cin >> n; for(int i =0;i> Arr[i]; for(long long j =2;j*j<=Arr[i];j++){ while(Arr[i]%j == 0) { Arr[i]/=j; pr[i].push_back(j); } } if(Arr[i] >1) pr[i].push_back(Arr[i]); } long long ans =0; for(int i =0;i-1;j--){ curr = curr*pr[i][j]; ans+=curr; } ans++; } cout << ans; return 0; }