answersLogoWhite

0


Best Answer

It sounds like you're using Java, so instead of pseudo-code, I'll give you the actual code.

LinkedList<Integer> l;

// Let's assume you have a bunch of Integer values in this list.

for (int i = 0; i < l.size(); i++){

int n = l.get(i);

boolean prime = true;

for (int i = 2; i < n; i++){

if (n % i == 0){

prime = false;

break;

}

}

if (prime){

l.remove(i);

i--;

}

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the pseudo code to delete prime numbers from linked-list?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

How are prime numbers used in every day life?

Prime numbers have many applications. Some examples are: public key cryptography, hash tables, pseudo-random number generators, and ISBN check digits.


Write a pseudo code to display prime numbers from 1-1000?

loop i from 0 to num check if num mod i equals 0breakelsesum = sum + numend the loopprint the sum


How many prime numbers between 1 and 8888888888888888888888888888888888888888888888?

How ma How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and ny prime numbers between 1 and


What is the total of the next eight prime numbers after twenty four?

Just go to a table of prime numbers, find the prime numbers, and add them.Just go to a table of prime numbers, find the prime numbers, and add them.Just go to a table of prime numbers, find the prime numbers, and add them.Just go to a table of prime numbers, find the prime numbers, and add them.


what are the numbers for not prime numbers?

Numbers that are not prime numbers are called composite numbers.

Related questions

What are the prime numbers between 18 and 28?

The numbers 19 and 23 are prime.


How are prime numbers used in every day life?

Prime numbers have many applications. Some examples are: public key cryptography, hash tables, pseudo-random number generators, and ISBN check digits.


Write a pseudo code to display prime numbers from 1-1000?

loop i from 0 to num check if num mod i equals 0breakelsesum = sum + numend the loopprint the sum


How many prime numbers between 1 and 8888888888888888888888888888888888888888888888?

How ma How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and How many prime numbers between 1 and ny prime numbers between 1 and


What is the total of the next eight prime numbers after twenty four?

Just go to a table of prime numbers, find the prime numbers, and add them.Just go to a table of prime numbers, find the prime numbers, and add them.Just go to a table of prime numbers, find the prime numbers, and add them.Just go to a table of prime numbers, find the prime numbers, and add them.


What are numbers that have 2 factors called?

Prime numbers like 2, 3, 5 and 7.


what are the numbers for not prime numbers?

Numbers that are not prime numbers are called composite numbers.


Consider prime numbers between 1 and 10000. Draw a flowchart to display the prime numbers.Write a pseudo code associated with the flowchart in a)?

A) Here's an example of a flowchart and pseudocode that could be used to display the prime numbers between 1 and 10000: Flowchart:
START Set up an array of numbers from 1 to 10000 Set an empty array to store the prime numbers Set i = 2, the first prime number For each number in the array, check if it is divisible by i If it is divisible by i, it is not a prime number and move to the next number in the array If it is not divisible by i, it is a prime number and add it to the prime numbers array Increase i by 1 and go back to step 4 Repeat steps 4 through 7 until i is greater than the square root of 10000 Display the prime numbers array END


Are any two prime numbers relatively prime?

Any two prime numbers will be relatively prime. Numbers are relatively prime if they do not have any prime factors in common. Prime numbers have only themselves as prime factors, so all prime numbers are relatively prime to the others.


Why are prime numbers divisible?

Prime numbers are divisible because any numbers that are divisible are prime. If a number isn't divisible, it isn't prime. Prime numbers have to be divisible by at least one pair of numbers to be prime.


Are there infinitely many natural numbers that are not prime?

This can be an extension to the proof that there are infinitely many prime numbers. If there are infinitely many prime numbers, then there are also infinitely many PRODUCTS of prime numbers. Those numbers that are the product of 2 or more prime numbers are not prime numbers.


What 2 prime numbers 30?

No two prime numbers can make 30.No two prime numbers can make 30.No two prime numbers can make 30.No two prime numbers can make 30.