Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Question!


Name: nisha
Title:
  find prime numbers from a list of given elements without array
Question:
My question is how can we  find prime numbers from the list of values inputted by user (checking a no. whether prime  is by counting the no. Of factors)
I tried the code below,but its not working:-


#include<stdio.h>
void main()
{
int n,num,I,j,p=0,c=0;
printf("Enter the limit");
scanf("%d",
Answers:

Name: salvatore aranzulla
for mi if iu vuoi aver uan numero prime yu mast scrivere numbero in sequenz bat primo