#include #include #include #include #include #include using namespace std; long long int findfactor(long long int stick) { long long int sqt=sqrt(stick); for(int i=2;i<=sqt;i++) { if(stick%i==0) { return i; } } return -1; } int main() { int n; cin >> n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } /* Enter your code here. Print output to STDOUT */ long long int finalmoves=0; for(int i=0;i1) { long long int factor=findfactor(stick); if(factor==-1) { moves+=1; break; } long long int temp=stick/factor; stick/=factor; moves+=temp; } finalmoves+=moves; } cout<