#include<stdio.h>
#include<math.h>
int main()
{int n,i,j;
scanf("%d",&n);
for(i=2;i<=n;i++)
{for(j=2;j<=i;j++)
{if(i%j==0)break;
}
if(j==i){printf("%d\n",i);
}
}
return 0;
}
标签:return,int,scanf,break,29.1306,include From: https://blog.51cto.com/u_15758636/5887804