#include <stdio.h>
#include <math.h>
int main()
{
int n,i,j,k;
int *mang = (int *)calloc(n,sizeof(int));
scanf("%d",&n);
for(i=2;i<n;i++)
{
for(j=2;j<=sqrt(i);j++)
{
if(i%j==0)
{
goto thoat;
}
}
printf("%d ",i);
thoat:;
}
}
khi lệnh if được thực hiện, goto thoạt ra và thực thiện câu lệnh sau dòng thoat:; đúng không, tại sao lệnh printf vẫn chạy nhỉ