#include <stdio.h>
#define N 1000
int a[N];
int main()
{int i,j,m,n;
for (i=0;i<=N;i++)
a[i]=-1;
scanf ("%d %d",&m,&n);
for(i=1;i<=n;i++)
for(j=1;j<=m;j++)
{if (j%i == 0) a[j-1]*=-1;}
for(j=1;j<=m;j++)
if(a[j-1]==1)
printf ("%d ",j);
printf ("\n");
return 0;
}
开灯问题
最新推荐文章于 2022-04-20 16:46:39 发布