You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser.
کد گرفتن اعداد اول تا 1000 به زبان c
# "include "stdio.h
int main()
{
int i, j, n;
for(i = 1; i <= 1000; i++)
{
n = 0;
for(j = 1; j <= i; j++)
if(i % j == 0)
n++;
if(n == 2)
printf("%d\n", i);
}
return 0;
}