#include #include #include #define N 1000001 #define P 78498 #define LL long long int using namespace std; LL divs[N],ans[N],d; bool isprime[N]; LL primes[P],p=0; void prep() { int i,j; for (i=0;i> t; while(t--) { cin >> n; res+=n+f(n); //cout << n+f(n) << '\n'; } cout << res << '\n'; return 0; }