#include #include #include #include #include using namespace std; int main() { int n; cin >> n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } long long int tot=0; for(int i=0;i 1;j++) { while(temp%j==0) { ans+=temp; temp=temp/j; } } if(temp>1) ans+=temp; tot+=ans; } cout<