回复 2楼 炎天
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int a;
a=1;
scanf("%d",&a);
while(a>0){
if(a%2==0){
return 0;
}
if(a%3==0){
return 0;
}
if(a%5==0){
return 0;
}
printf("%d",a);
}
return 0;
}