输出1-300间的全部素数,请帮忙修改!
#include<stdio.h>void main()
{
int i;
int number;
int times=1;
for(number=3;number<=300;number=number+1){
for(i=2;i<number;i++){
if(number%i==0)
{break;} }
printf("%d",number);
times=times+1;
if(times%10==0)
{ printf("\n");}
}
}