#include<stdio.h>
void main()
int i,j,prime;
for(i=2;i<=500;i++)
for(j=2;j<500;j++)
{
if(i%j=o)
{
prime=0;
break;
}
prime=1;
if(prime)
{
printf("\n%d",i);
}
}
}
nitin_mehta
-8
Newbie Poster
Salem
commented:
Thread is 3 years old, and this adds NOTHING to the discussion. Just more broken code dumped without thinking
-7
yellowSnow
commented:
For bumping old threads.
-1
karan31
-1
Newbie Poster
Bench
commented:
Unnecessary bump of an old thread
-1
ciint
0
Newbie Poster
mdarnob007
0
Newbie Poster
umer awais
0
Newbie Poster
sree_ec
commented:
breck; -> Whats this? and in such an old thread
+0
rajii93
12
Newbie Poster
aizam76
0
Newbie Poster
aizam76
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.