C语言入门,来看看。

C语言题目,本人基础不好,不是很会,希望有人能够帮忙解答一下,让我参考参考,尽量简洁一点,感谢感谢

img

img

百度,节省10块

#include<stdio.h>
#include<math.h>
int main (){
int i,m,count;
count=0;
for(m=300;m>=100;m--){
    for(i=2;i<=m;i++){
        if(m%i==0)break;
    }    
    if(i==m){
        count++;
        if(count==8){
            printf("%d",m);
            break;
        }
            
    } 
}
return 0;
}

img