how to write a programme in C language print all the prime numbers 2-1000???
I’m sorry this is not “write my homework” page…
Show us some effort - what you did.
You can start with a definition of a prime number.
use Sieve of Eratosthenes. wiki
thnx a lot
Look at above link. Some basic optimization was handled