answersLogoWhite

0

not sure of the exact syntax but its quite hard to generate them, but you can go through a list of numbers, that could be 0-10000000 say, and check if it is prime by dividing it by all the numbers that are smaller than it

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Shell program to generate the prime numbers betwee 1 to 50?

2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


Shell program to generate prime number between 1 and 50?

There are several shell programs available for download on the Internet that will generate prime numbers. The best way to find a prime number is through calculation, however.


Print first ten prime numbers in c?

// simple program to generate first ten prime numbers #include<stdio.h> #include<conio.h> void main() { int c,i,j,n; clrscr(); for(i=2;i<30;i++) { c=0; for(j=2;j<i;j++) { if(i%j==0) {c=c+1; } } if(c==0) printf("%d",i); } getch(); }


How do you generate a parse tree from an expression using C program?

c code for top down parser


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


C program to generate numbers from 1 to 100 divisible by 2?

(rand()&50+1)*2


How do you write a c program to get a range from user and give a list of prime numbers?

To get all tutorials of "c programming" Reference:cprogramming-bd.com/c_page2.aspx# prime number


Write a c program to generate all prime numbers in the given range?

look man that would take alot >>> Ill give you the way =============================================================================== this answer i write it now on net ! i read about that befor in it uni where i study i will chick out the answer and re write it best wishes 2024


How do you write a program in objective c numbers 1-100 prime numbers?

fdsgfhgdfhgdf


Write a C program to find the sum of all prime numbers?

Since there is an infinite set of prime numbers the answer would be infinity.


Write a c program to generate student mark details using union and find total and average and grade?

write a c program to display marks,total,average,grade using union