#include using namespace std; //constant const long long int inf = 1<<30; const int N = 1e5+1; const int M = 1e5+1; //variable vector prime; vector A[N]; //function bool isPrime(int x){ if(x<=1){ return false; } for(int i=2; i (int)(sqrt(1e5))+1){ A[i].push_back(in); } } int main() { int n,k; createPrime(); cin>>n>>k; for(int i=0; i>in; factVar(in,i); } /*for(int i=0; i dupList; int maxDist=0, rest=0; for(int left=0; left