ProAnswers.org

C program to generate prime numners?

how do I write C program to generate prime numbers in C?

1 Like

main()
{
int i,n,p,v;
printf(“enter the number of terms”);
scanf("%d",&n);
for(i=2;i<=n;i++)
{
for(j=1;j