num[10];count; check[101]; x[1000];y[1000]; gcd(a,b){return b?gcd(b,a%b):a;} lcm(int*a){ if(a[1]==0)return *a; a[1]*=*a/gcd(*a,a[1]); return lcm(a+1); } main(){ int n,k,i,j,temp,times; scanf("%d%d",&n,&k); for(i=0;i