#include <stdio.h>
#include <stdlib.h>
int main(void) {
 int x=2;
 int i,cnt=0;
 while(cnt<50){
  int isprime=1;
  for(i=2;i<x;i++){
   if(x%i==0){
   isprime=0;
   
  }}if(isprime==1){
   printf("%d ",x);
   cnt ++;
  }
    x++;
 }
 return 0;
}

 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案