求解答!!!
求帮忙看看这段代码有什么错误,这个程序的目的是找出a~b之间的所有素数
#include <stdio.h>
int main()
{
int a,b,x,y,found;
scanf("%d %d",&a,&b);
for(x=a;x<=b;x++)
{
for(y=2;y<b;y++)
{
found==0;
if(x%y==0)
{
found==1;
break;
}
}
if(0==found)
{
printf("%d ",x);
}
}
return 0;
}