To whoever helped me ealier (or anybody period), need some more help on where to go

Here’s the question once again:

I need to write a code in java based on an alrgorithm, the alrgorithm and it’s problem are below:

The Sieve of Eratosthenes is “a simple, ancient algorithm for finding all prime numbers up to any given limit,” which you can read about at: (Wikipedia: Sieve of Eratosthenes)

Write a method called sieve that takes an integer parameter, n , and returns a boolean array that indicates, for each number from 0 to n – 1, whether the number is prime.

Here’s what I got so far:

public static boolean sieve(int n) {
for (int i = n; i > n; i--) {
if (n%2 == true){
i = false

}
}
return true;
}

Similar Questions
  1. 1. I have helped an old man to cross the street on a crosswalk.2. I have helped a foreigner to find a post office. 3. I have
    1. answers icon 1 answer
    1. answers icon 1 answer
  2. Which of the following are most likely to form a stable ionic bonda Carbon (Period IVA) and Oxygen (Period VIA) b Lithium
    1. answers icon 1 answer
  3. Which of the following are most likely to form a stable ionic bondA) Carbon (Period IVA) and Oxygen (Period VIA) B) Lithium
    1. answers icon 1 answer
more similar questions