#include #define int long long using namespace std; int n; int a[1005]; int zs[50005]; int tot; signed main(){ ios::sync_with_stdio(0); cin.tie(0);cout.tie(0); cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1;i<=n;i++){ int t=a[i]; for(int j=2;j*j<=t;j++){ if(t%j==0){ zs[++tot]=j; // cout<1){ //cout<