answersLogoWhite

0

/* one example, certainly not the best */

int i, j;

for (i=1; i<=100; i++) {

if (i==1) continue;

if (i==2 i==3) printf ("%d\n", i);

for (j=2, j<i; j++) if (i%j==0) continue;

printf("%d\n", i);

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?


Prime numbers between 1 to 10 in microprocessor 8085?

program to find prime number in 8085 microprocessor


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.


What is the largest prime no that is stored in 8 bit pattern?

Write your own prime number program and find out.


A program to find that the input number is prime or not?

Use Wolfram|Alpha... go to the related link below, Wolfram|Alpha, and type in (is __ (number) prime) and then the program will compute that and tell you if it is prime or composite.


How do you find prime between 49121?

49121 is a prime number in its own right


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.


find the prime number between two number?

There need not be any prime number between them.


Find the coefficient of variation for first 'n' natural nombers?

I have found the coefficient of variation of the first natural numbers and also other functions.


What is the sum of the prime numbers between 90 and 100?

The prime numbers between 90 and 100 are 97. To find the sum of prime numbers between 90 and 100, you simply add 97 to get the total sum. Therefore, the sum of prime numbers between 90 and 100 is 97.


Find all prime numbers between 20 and 30?

23 and 29


Find the difference between the first two prime numbers?

2 and 3 are the first two prime numbers. The difference between them is 1