#include using namespace std; #include #include #include #include #include template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } #define rep(i,n) for (int i = 0; i < (n); ++i) typedef long long ll; typedef long double ld; typedef unsigned long long ull; using P=pair; const ll INF=1001001001; const int mod=1e9+7; vector>prime_factorize(ll N) { vector>res; for (ll i= 2; i*i<=N;i++) { if (N%i!=0){continue;} ll cnt=0; while(N%i==0){ cnt++; N/=i; } res.push_back({i, cnt}); } if(N!=1){res.push_back({N, 1});} return res; } void solve(){ int n; cin>>n; auto p=prime_factorize(n); int ans=0; for(auto u:p){ ans+=u.first*u.second; } cout<