Search:

Type: Posts; User: aesguitar

Search: Search took 0.14 seconds.

  1. Replies
    13
    Views
    2,502

    Re: Sieve of Eratosthenes: Memory & Performance

    Good point copeg, is there any way to implement it into a concursive method?
    Pseudocode for dual-core:

    core0 performs the sieve up to half Integer.MAX_VALUE
    core1 performs the sieve from half...
  2. Replies
    13
    Views
    2,502

    Re: Sieve of Eratosthenes: Memory & Performance

    I believe this is what you're looking for:



    //shows all prime numbers to a specified max
    ArrayList<Long> sieve = new ArrayList<Long>();
    public static ArrayList<Long> primesUpTo(int n) {...
Results 1 to 2 of 2