#include using namespace std; #define rep(i, x, y) for(ll i = (x); i <= (y); ++i) #define bug(a) cout << #a << " = " << a << endl; #define fbug(a, x, y) { cout << #a << ": "; rep(i, x, y) cout << a[i] << ' '; cout << endl; } #define pb push_back //#define mp make_pair #define endd "\n" #define fast ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) #define input freopen("inp.txt","r",stdin) #define output freopen("out1.txt","w",stdout) #define loop(i,n) for(ll i=0;i=0;i--) #define ll long long #define Z size() #define pii pair #define setp(x) fixed<>n; loop(i,n)cin>>ar[i]; loop(i,n){ ll num=ar[i]; int k=0; while(num>1 && siz>k){ while((num%primes[k])==0){ tans+=num; num/=primes[k]; } k++; } tans+=num; if(num>1)tans++; } cout<