#include using namespace std; #define forw(i,a,n) for (int i=a;i=a;i--) #define fi first #define se second #define SZ(x) ((int)(x).size()) typedef vector VI; typedef long long ll; typedef pair PII; const ll mod=1000000007; const int maxn = 1e5 + 3; void mf(){ freopen("input.in","r",stdin); //freopen("output.ou","w",stdout); } //START SOL ll f(ll x){ ll i = 2; ll ans = 1; ll y = x; while(i*i <= x && y > 1){ while(y % i == 0){ ans = 1 + i*ans; y/= i; } i++; } if( y > 1 ){ ans = 1 + y * ans; } return ans; } ll n,a; void solve(){ cin>>n; ll res = 0; forw(i, 0, n){ cin>>a; res+=f(a); } cout<