Slashdot Mirror


Researcher Modifies Sieve of Eratosthenes To Work With Less Physical Memory Space (scientificamerican.com)

grcumb writes: Peruvian mathematician Harald Helfgott made his mark on the history of mathematics by solving Goldbach's weak conjecture, which states that every odd number greater than 7 can be expressed as the sum of three prime numbers. Now, according to Scientific American, he's found a better solution to the sieve of Eratosthenes: "In order to determine with this sieve all primes between 1 and 100, for example, one has to write down the list of numbers in numerical order and start crossing them out in a certain order: first, the multiples of 2 (except the 2); then, the multiples of 3, except the 3; and so on, starting by the next number that had not been crossed out. The numbers that survive this procedure will be the primes. The method can be formulated as an algorithm." But now, Helfgott has found a method to drastically reduce the amount of RAM required to run the algorithm: "Now, inspired by combined approaches to the analytical 100-year-old technique called the circle method, Helfgott was able to modify the sieve of Eratosthenes to work with less physical memory space. In mathematical terms: instead of needing a space N, now it is enough to have the cube root of N." So what will be the impact of this? Will we see cheaper, lower-power encryption devices? Or maybe quicker cracking times in brute force attacks? Mathematician Jean Carlos Cortissoz Iriarte of Cornell University and Los Andes University offers an analogy: "Let's pretend that you are a computer and that to store data in your memory you use sheets of paper. If to calculate the primes between 1 and 1,000,000, you need 200 reams of paper (10,000 sheets), and with the algorithm proposed by Helfgott you will only need one fifth of a ream (about 100 sheets)," he says.

78 comments

  1. What's the _actual_ algorithm. by UnknownSoldier · · Score: 3, Insightful

    *sigh*

    Getting tired of "news" posting _zero_ details.

    Does anyone have details on the actual algorithm? Reference Implementation?

    1. Re: What's the _actual_ algorithm. by Anonymous Coward · · Score: 0

      No more news for nerds, only stuff that matters. Whether the stuff has any meaning, or whether it matters to anyone besides the poster, is irrelevant.

    2. Re:What's the _actual_ algorithm. by Anonymous Coward · · Score: 0

      A summary isn't supposed to contain all the information. It's supposed to be a quick overview of what the story is about so you can choose to click the link or not, so stop whining and click the goddamn link if you want more information.

    3. Re:What's the _actual_ algorithm. by seoras · · Score: 2

      Yeah, I was disappointed not to see his method too.
      Patent Pending? Classified by intelligence services? BS?
      Re-reading the subtitle is does say "COULD accelerate computer calculations"
      It doesn't say "accelerates computer calculations"
      Still to be proven and inconclusive?

    4. Re:What's the _actual_ algorithm. by UnknownSoldier · · Score: 2

      I already read the link a few hours before it was posted. There was zero details on the algorithm and no link to the actual research that I could see.

    5. Re:What's the _actual_ algorithm. by slew · · Score: 5, Informative

      I already read the link a few hours before it was posted. There was zero details on the algorithm and no link to the actual research that I could see.

      Well, in case you are interested, after checking around, it appears that this "algorithm" was a minor result of Mr. Helfgott's work to prove the ternary Goldbach conjecture (every odd integer n greater than 5 is the sum of three primes). Here's the preprint of the paper, I should warn you that it appears to be a very theoretical paper, one targetted at the Goldbach conjecture (not practical prime sieving), so there is not a fully fleshed out algorithm that you can translate into a computer program. I haven't gone through the paper in detail, but it appears to rely heavily on technique from a Messr. Ramare.

      We start by adapting ideas from Ramare’s version of the large sieve for primes to estimate l2 norms over parts of the circle. We are left with the task
      of giving an explicit bound on the factor in Ramare’s work. As a side effect, this finally gives a fully explicit large sieve for primes that is asymptotically optimal, meaning a sieve that does not have a spurious factor of exp(gamma) in front; this was an arguably important gap in the literature.

      I cannot find a definitive paper about this technique, but is appears to be related to this earlier paper. Mr. Helfgott apparently just tightening the bounds which theoretically should create a better sieve algorithm. My impression is that I think it will take some concerted effort to create a computer algorithm out of this algorithm.

      However, your mileage may vary...

    6. Re:What's the _actual_ algorithm. by vovin · · Score: 1

      Since the prime sieve is generally an array of bits the first (obvious) compression is to skip past 2 (and 3?) then you only need to maintain a bit pattern that represents every other bit, or possibly every 3rd bit ... generalizing this pattern means with the sum of 3 primes pattern implies that you exchange the bit pattern for some lookup table that indicates which primes this bit represents? Not sure ..

      At some point the bit field (sieve) gets pretty sparse, sparse enough that hold an array of primes and/or prime sums may be a way to condense the sieve, or the next 'window' into the sieve. Not sure when or if the memory vs cpu tradeoff becomes a win-win but it seems possible.

      YMMV indeed.

    7. Re:What's the _actual_ algorithm. by Troy+Roberts · · Score: 1

      The paper you point to proves that all add numbers larger than 10^27 are the sum of three primes and then references another paper where they have tested all odd numbers to 10^38 and concludes that all odd numbers larger than 5 can be the sum of 3 primes. It does not say anything about the Sieve of Eratosthenes. So, as far as I can tell there is nothing describing the modifications.

    8. Re:What's the _actual_ algorithm. by arglebargle_xiv · · Score: 1

      Also:

      So what will be the impact of this? Will we see cheaper, lower-power encryption devices? Or maybe quicker cracking times in brute force attacks?

      No.

      And that's not just applying Betteridge's Law. The answer really is "no", even if someone manages to turn it into a simple algorithmic implementation.

    9. Re:What's the _actual_ algorithm. by vikingpower · · Score: 2

      Helfgott has not (yet) published his paper. The only thing I could find was an abstract, in Spanish. . He works at the University of Göttingen, and so probably knows basic German. Me speaking German, I'm going to gently ask him for his paper by email.

      --
      Religous speak to God. Insane are spoken to by God. When all shut up, one can finally hear Shostakovich in peace
    10. Re: What's the _actual_ algorithm. by VernonNemitz · · Score: 1

      I don't know what Helfgott's algorithm is, either, but here's one that can do 40:1 data compression of prime numbers (can pack 200 million 32-bit primes in about 100 megabytes of space), and it is arbitrarily extendable to higher compression rates (per bigger data-compression table).

    11. Re:What's the _actual_ algorithm. by vikingpower · · Score: 1

      Update Prof. Helfgott has kindly replied to my email inquiry, promising to signal me as soon as he's put a preprint up. If you're interested, ping me.

      --
      Religous speak to God. Insane are spoken to by God. When all shut up, one can finally hear Shostakovich in peace
    12. Re: What's the _actual_ algorithm. by vikingpower · · Score: 0

      200 million 32-bit primes in about 100 megabytes of space

      That is not 40:1, that is 8:1. Moreover, I looked at your source code - that is so non-portable, my toes cringe when thinking of porting it to e.g. Linux or Solaris. Even if that thing is somewhat of a technical feat, 8:1 compression ratios on pure numbers can be obtained with much less code and much less complexity.

      --
      Religous speak to God. Insane are spoken to by God. When all shut up, one can finally hear Shostakovich in peace
    13. Re:What's the _actual_ algorithm. by vikingpower · · Score: 1

      See my post below. Prof. Helgott did a presentation at the Buenos Aires conference, he's working on putting up a preprint. Stop whining.

      --
      Religous speak to God. Insane are spoken to by God. When all shut up, one can finally hear Shostakovich in peace
    14. Re:What's the _actual_ algorithm. by UnknownSoldier · · Score: 1

      Awesome! Thanks for the update.

      Are you able to post his email address so I can directly email him too ?

      I'd rather not provide contact details on /. for obvious reasons (I guess I could make a throwaway reddit account if push comes to shove.)

    15. Re:What's the _actual_ algorithm. by RockDoctor · · Score: 1
      With 43 papers on Arxiv answering to that author surname, I suspect that the paper will be there some day. (That search's most recent result was "1. arXiv:1512.02135 Soficity, short cycles and the Higman group " ; other papers in the results relate to work on primes, so it looks as if this is the correct author.)

      Linking to that, when the (draft) paper goes up is much more appropriate than mucking around with emailing pre-prints.

      --
      Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
    16. Re:What's the _actual_ algorithm. by Anonymous Coward · · Score: 0

      This method of compression is trivial, and would only scale the space down linearly. The proposed solution manages, somehow, to scale it down to the square root of the search space.

    17. Re:What's the _actual_ algorithm. by vikingpower · · Score: 1

      The address is hhelfgo at uni-math.gwdg dot de

      --
      Religous speak to God. Insane are spoken to by God. When all shut up, one can finally hear Shostakovich in peace
    18. Re:What's the _actual_ algorithm. by vikingpower · · Score: 1

      You are right. I am so burning curious, however, to get a look at this stuff, that even the few days needed for arXiv to publish this, mean a win for me. (In my current project, a critical subsystem is a prime generator that might benefit from this).

      --
      Religous speak to God. Insane are spoken to by God. When all shut up, one can finally hear Shostakovich in peace
  2. Not logarithmic by Anonymous Coward · · Score: 0

    Not logarithmic. Therefore, still essentially useless for enumerating primes.

  3. Cube root by randm.ca · · Score: 1

    Since when is the cube root of 10,000 equal to 100? That's a much more interesting discovery!

    1. Re:Cube root by Anonymous Coward · · Score: 0

      No one said that the cube root of 10000 is 100. There is a constant factor in any big O approximation. That constant factor would explain the two numbers.

    2. Re:Cube root by randm.ca · · Score: 1

      Yeah 2 seconds after I posted my second message I found myself wishing for an edit feature...

    3. Re:Cube root by XaXXon · · Score: 1

      Overhead would have to be ~78 sheets of paper. That doesn't seem right.

      http://www.wolframalpha.com/in...

    4. Re: Cube root by paskie · · Score: 1

      Which is all right since the cube root of 1e6 is 1e2. The previous best algorithm would require 1e4 pages.

      --
      It's not the fall that kills you. It's the sudden stop at the end. -Douglas Adams
    5. Re:Cube root by JustAnotherOldGuy · · Score: 2

      Yeah 2 seconds after I posted my second message I found myself wishing for an edit feature...

      This is slashdot, we don't go for all those commie-pinko futuristic hand-holding features from the 1990's.

      I mean, if we let people edit their posts (even just during a 1-minute grace period), ohmygod where will it end??

      --
      Just cruising through this digital world at 33 1/3 rpm...
    6. Re:Cube root by Bruce+Dawson · · Score: 1

      So, is it square root (100 is the square root of 10,000) or cube root (like the post said) or is it the square of the fifth root (100 compared to 100,000).

      'cause so far the more information I'm given about this story the less I know, and the apology didn't actually clarify anything.

    7. Re:Cube root by Anonymous Coward · · Score: 0

      I don't have answers for you, but square root makes perfect sense to me. Any non-prime number will be divisible by at least 1 number that is equal or less than the square root. So to check primes 10001, you only need to check for divisors 100 or less.

    8. Re:Cube root by JustAnotherOldGuy · · Score: 1

      So, is it square root (100 is the square root of 10,000) or cube root (like the post said) or is it the square of the fifth root (100 compared to 100,000).

      Yes.

      --
      Just cruising through this digital world at 33 1/3 rpm...
    9. Re:Cube root by randm.ca · · Score: 1

      What I realized after I posted was that it is the cube root of N (and N=1,000,000 in their example of finding primes between 1 and 1,000,000), not the cube root of the original space required (which was given as 10,000 but is actually 100,000 sheets of paper).

    10. Re:Cube root by Anonymous Coward · · Score: 0

      Try this: Divide both numbers by 10. Then take the cube root of the larger result.

      y = ax^3

      If the units for x is "sheets of paper", then a = 10.

      Oddly, though, my CAPTCHA for this post is "fivefold".

  4. Bad math by Anonymous Coward · · Score: 0

    200 reams is 100,000 sheets. The summary quoted the error in the article accurately.

    1. Re:Bad math by randm.ca · · Score: 1

      Good catch. Although cube root of 100,000 is still not 100, so double fail on their part.

    2. Re:Bad math by Anonymous Coward · · Score: 0

      Logged on to post the same thing. But I have mod points so I gave you one instead.

    3. Re:Bad math by XaXXon · · Score: 1

      Overhead would have to be 50 sheets of paper. doesn't seem right.

      http://www.wolframalpha.com/in...

    4. Re:Bad math by bugs2squash · · Score: 2

      Worse than that, they should have used the Libraries of Congress unit for storage capacity, not the ream.

      --
      Nullius in verba
    5. Re:Bad math by Anonymous Coward · · Score: 0

      They also didn't verify if the algorithm works OK:

      There are other sieves or algorithms to identify prime numbers. But Helfgott notes the sieve of Eratosthenes is different in that it also can work[OK?] with other mathematical operations such as factorization

  5. Where was this for my 1984 Science fair? by burhop · · Score: 4, Interesting

    Seriously. I got a scholarship using a TRS80 and the Sieve of Eratosthenes.

  6. I'm no expert, but this seems useless. by Anonymous Coward · · Score: 1

    A sieve gives you *all* primes, while encryption uses only specific primes. Pretty sure making a list of all primes of 4096 or less bits is one of those "more information than could be stored in the entire universe" things.

    1. Re: I'm no expert, but this seems useless. by Anonymous Coward · · Score: 0

      Nope, it isn't

    2. Re: I'm no expert, but this seems useless. by Anonymous Coward · · Score: 0

      Approx. 2^4096/(ln(2^4096)) primes below 2^4096, multiplied by 4096 bits each gives 2^4096/ln(2) = 2^4096.52 = 10^1233.2 bits. A couple minutes of googling tells me the universe's total entropy is something like 10^120 bits.

    3. Re:I'm no expert, but this seems useless. by cheesybagel · · Score: 1

      cbrt(2^4096)=1.014582607681846743926326542084877765671470485443624... × 10^411 bits

      A terabyte is 2^40 bytes i.e. 2^43 bits. So yeah. Too much.

    4. Re: I'm no expert, but this seems useless. by Maritz · · Score: 1

      You appear to have been flatly contradicted.

      --
      I do not want your cheap brainburning drugs. They are useless for work. And I am a working man today.
  7. "new"? huh by Anonymous Coward · · Score: 0

    So the outside loop of my years-old code is now a "new" invention.

    pr = 2;
    while ((pr * pr) = NM) { .....

    Maybe if the article at least showed some pseudocode, we could evaluate what its doing so "differently".
    The property that the largest factor X of a given number N can never be larger than sqrt(N) as X * X = N (worst case) is pretty obvious, basic math.

  8. Re:"new"? huh by Blaskowicz · · Score: 1

    The news is about a cube root, not a square root.

  9. Anelloni by PopeRatzo · · Score: 4, Funny

    If I 3D-print a Sieve of Eratosthenes, can I use it to drain cooked pasta?

    --
    You are welcome on my lawn.
    1. Re:Anelloni by Anonymous Coward · · Score: 3, Funny

      any pasta that is a multiple of another pasta's length will slip through. which would be the majority of the pasta. You're going to waste a lot of pasta doing this.

    2. Re:Anelloni by Anonymous Coward · · Score: 1

      You're thinking of a Colander of Eratosthenes. You're obviously not a Pastafarian.

    3. Re:Anelloni by schweini · · Score: 2

      Not really - since the distance between prime numbers gets big quite quickly, your sieve would quickly almost not have any holes at a certain point.

    4. Re: Anelloni by Anonymous Coward · · Score: 0

      This is a prime example of irrational behaviour. No Ï for you!

    5. Re:Anelloni by Anonymous Coward · · Score: 0

      the distance between prime numbers gets big quite quickly

      You're funny, but this is seriously wrong.

  10. ...and they details they do post are wrong by Roger+W+Moore · · Score: 4, Insightful

    Getting tired of "news" posting _zero_ details.

    I'd be happier if the meagre details they do post were at least correct. If one fifth of a ream is 100 sheets then 200 reams is 100,000 sheets not 10,000 as the summary states.

  11. Re:"new"? huh by burhop · · Score: 2

    The news is about a cube root, not a square root.

    While you are right that the cube root is interesting, the Sieve of Eratosthenes is a different algorithm. Historically, you need an array of bits, with each bit set if it is the second bit after 2, the third bit after 3, the 5th bit after 5, etc. It is WAY faster than testing each number with the factors from 2 to the square root of the number.

    As I understood it, rather than needing 1000 bits for the first 1000 numbers, you need cuberoot(1000) bits or 10 bits. They also say 1/5 the bits - so maybe someone can clarify that or post a better link.

    (yeah, you can optimize a bit by ignoring the even numbers and so on but its still doesn't get you close to the cube root of memory).

  12. Um fellas .... by chuckugly · · Score: 0

    "Goldbach’s weak conjecture, according to which every odd number greater than 5 can be expressed as the sum of three prime numbers—such as: 3 + 3 + 5 = 11 and 19 + 13 + 3 = 35." Hmmmm.

    1. Re:Um fellas .... by Anonymous Coward · · Score: 0

      Why are you hmmmmmmmmmmmmmmmmmmm-ing ?
      35 and 11 are both odd numbers. And each of them can be expressed as the sum of 3 (not necessarily distinct) prime numbers.

    2. Re:Um fellas .... by chuckugly · · Score: 1

      Adding 3 odd numbers gets you an odd number has never really astonished me.

    3. Re:Um fellas .... by Areyoukiddingme · · Score: 2

      Adding 3 odd numbers gets you an odd number has never really astonished me.

      Sure, but now we know that 206702934571364971352346820353 is guaranteed to have three prime addends.

      And that ain't hay.

    4. Re:Um fellas .... by Anonymous Coward · · Score: 0

      That's the easy part.

      Finding 3 primes that sum to an arbitrary odd number was the hard part.

    5. Re:Um fellas .... by chuckugly · · Score: 1

      True. How does 19 + 13 + 3 = 35 illustrate that? I really think an example like yours (except including the addends), or some other easier to see but valid example that adds to a prime like the first example would be more illustrative. All the second example shows is that 3 odd numbers (who happen to also be primes in that example) result in an odd number.

    6. Re:Um fellas .... by Anonymous Coward · · Score: 0

      It still is the hard part.

    7. Re:Um fellas .... by Areyoukiddingme · · Score: 1

      I really think an example like yours (except including the addends), or some other easier to see but valid example that adds to a prime like the first example would be more illustrative.

      My example without the addends is sort of the point, right? I don't know what the addends are, but I am absolutely certain they exist. There's a proof. Pick any huge odd number you like, and the same guarantee exists. I'm not mathematician enough to guess how difficult it might be to find said addends, and digging around on Wolfram Alpha long enough to find out sounds too much like work for this time of night. But maybe it's difficult enough to be useful. And maybe not. Encryption is generally built on the difficulties of prime factorization. I don't know how difficult it is to find a triple prime partition of a large odd number, and maybe there's a reason cryptographers prefer factorization to partitioning. Maybe it's difficult enough?

    8. Re:Um fellas .... by goarilla · · Score: 0

      So any odd som of odd operands is odd. Being a math luddite I find that pretty remarkably.

  13. complexity by hcs_$reboot · · Score: 1

    paper (10,000 sheets), and with the algorithm proposed by Helfgott you will only need (... about 100 sheets)

    So it's O(sqrt(n)) space, what about time complexity? If it's O(n^2) thanks but no.

    --
    Slashdot, fix the reply notifications... You won't get away with it...
    1. Re:complexity by Anonymous Coward · · Score: 0

      See the abstract linked below. The author said the temporal complexity is O(N).

    2. Re:complexity by hcs_$reboot · · Score: 1

      Below?

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    3. Re:complexity by Anonymous Coward · · Score: 0

      below your post

      But that's only an abstract with no real substance.

  14. The abstract (in Spanish) by oluckyman · · Score: 1
  15. Moving window technique? by treczoks · · Score: 2

    As part of a programming assignment I wrote two programs for finding primes.

    The first one using a moving window technique. Lets say my window size is 100, so I fill in the numbers 1 to 100 into the window, do my sieve job on this, get the primes I got so far and put them in a list, and fill the window with the numbers 101 to 200, run them through the primes I got and then through whatever remains, extract the primes and add them to the list, etc...

    The second was an instant filter system, i.e. I've got a list of tuples, each list element has a prime and a multiple of it, and my sieve table size is one, i.e. a counter. Lets say my list is A=(2,2) and B=(3,3), my counter is 4. While A2 is less than counter do A2 =A2+A1. A2 is now equal to A2, so counter is not prime. Next counter is 5, While A2 is smaller than counter do A2 = A2+A1, A2 is now bigger than counter, so it passes test A, while B2 is smaller than counter do B2=B2+B1, B2 is now bigger than counter, so it passes test B. End of prime list reached, so counter is prime. Create new tuple C(5,5) and add it to the list. Big advantage: No multiplications involved, the process of doing the while loop can be improved by using bit-shifted versions of the prime, so I only have additions, comparisons and bit shifts to deal with, which is easy and fast to implement with long integer implementations. And I need only to store the primes it found and their multiples, and the memory usage is very local and cache friendly.

    Just out of curiosity I'd like to see their algorithm. Because some algorithms from math/CS look good on paper and are proven to run comparatively fast on a ideal Turing machine, but produce laughable results in real-life tests...

  16. None of the above. by ledow · · Score: 3, Insightful

    "So what will be the impact of this? Will we see cheaper, lower-power encryption devices? Or maybe quicker cracking times in brute force attacks?"

    Neither.

    It's a method to discover primes using elimination of non-primes up to the square root of the number you're after.

    If you can get that far, you can get to the prime itself quite easily. It's not going to help discover new large primes without eliminating BILLIONS of numbers in between.

    And from there it has nothing to do with cracking encryption whatsoever.

    The impact of this is that a child's method of eliminating factorisable numbers slowly takes up slightly less storage space (i.e. slightly less variables held in RAM) than before. It's not a breakthrough in maths, but a slight efficiency saving in the computer science to perform the algorithm in practical terms.

    1. Re:None of the above. by Anonymous Coward · · Score: 0

      But, AFAIK, there are far more computer-intensive methods that are far more efficient to test a number for primeness, which is what matters for crypto. And you don't find *large* primes by starting from the start... you create a random, very large number close to the desired bit density and distribution (or any other crap criteria), you set the LSB (all primes other than 2 are odd), and start testing from there.

  17. Re:"new"? huh by Rockoon · · Score: 2

    From an optimal information-theory viewpoint:

    1000 bits, 168 of which are true (the 168 primes below 1000) and 832 are false.

    Given this model of the data, the optimal encoding of the 1's should use 2.573 bits each, while the optimal encoding of the 0's should use 0.265 bits each.:

    ln(1000/168) / ln(2) = 2.573... bits
    ln(1000/832) / ln(2) = 0.265... bits

    The space required for the entire sequence:

    (168 * ln(1000/168) + 832 * ln(1000/832)) / ln(2) = 653.109... bits

    The model would have to be significantly better than this. Improvements to the model must produce a better probability estimate than the raw statistics. The most obvious single improvement to the model is to treat the even numbers as special, where a simple rule can give you 100% model accuracy and thus use 0 bits to encode all the even positions.

    To get the entire sequence down to only 10 bits implies a very large computational overhead, because even with the prime probability all the way down to 1/1000 the list would still be:

    (1 * ln(1000/1) + 999 * ln(1000/999)) / ln(2) = 11.407... bits.

    So i'm thinking the O(N^1/3) doesnt apply to small values of n, but instead only to enormous values of n.

    --
    "His name was James Damore."
  18. References by HHelf · · Score: 5, Informative

    I was about to post something longer, but my computer deleted it at just the right moment. Summary: (a) The origin of this article was an interview given at an algebra colloquium in Buenos Aires a few weeks ago. Its appearance in Scientific American was a little unexpected (to me). I should be able to post a preprint soon. (b) In my colloquium talk, I made sure to mention that I had just come across a precedent in the literature: W. F. Galway, Dissecting a sieve to cut its need for space. In Algorithmic number theory (Leiden, 2000), vol 1838 of Lecture Notes in Comput. Sci., pages 297-312. Springer, Berlin, 2000. In both cases, we are talking about space essentially O(N^(1/3)) and time essentially O(N). Galway improves on the Atkin-Bernstein sieve, which is specifically about producing lists of primes. The sieve of Eratosthenes can be used for more general purposes, e.g., producing lists of factorizations or computing tables of values of arithmetic functions that depend on factorization. I actually got interested in the problem while using a sieve to produce successive values of mu(n), where mu is the Moebius function. As far as I can tell, there's a basic underlying idea being used in both cases, viz. Diophantine approximation. In brief, if you are finding primes (or what have you) in an interval [N,N+N^(1/3)], you do not have to sieve by every m=sqrt(N); you can tell in advance which integers m will have no multiples in that interval. This is all more or less orthogonal to [http://sweet.ua.pt/tos/software/prime_sieve.html]. Indeed what I do and what Oliveira e Silva does can very likely be combined. Best Harald Helfgott

    1. Re:References by Anonymous Coward · · Score: 1

      Thank you Prof. Helfgott for speaking out.

    2. Re:References by Anonymous Coward · · Score: 0

      The sieve of Eratosthenes can be used for more general purposes, e.g., producing lists of factorizations or [...]

      By "lists of factorizations" do you mean producing a list of ordered factorizations of a number, z.B. the following list for the number 12?—
      2 x 2 x 3
      2 x 3 x 2
      2 x 6
      3 x 2 x 2
      3 x 4
      4 x 3
      6 x 2
      12

    3. Re:References by Anonymous Coward · · Score: 0

      I mean giving a full list of prime divisors for each n in an interval.

  19. 7? by Anonymous Coward · · Score: 0

    Goldbach's weak conjecture, which states that every odd number greater than 7 can be expressed as the sum of three prime numbers

    WTF TFA? That's not even what Goldbach's weak conjecture is. The conjecture is "Every odd number greater than 5 can be expressed as the sum of three primes."