求100~200之间的素数

#include <stdio.h>

int main(void)
{
        int i,n,flag;


        for(i=100;i<=200;i++)
        {
                flag = 1;
                for(n=2;n<i;n++)
                {
                        if(i%n == 0){
                                flag = 0;
                                break;
                        }
                }

                if(flag == 1) printf("%d \n",i);
        }

        return 0;
}