Jump to content

Talk:Sieve of Eratosthenes: Difference between revisions

Line 17:
::I personally think the 100 doors "optimized" solutions are useless, adding nothing compared to the random number task, and cluttering up the table of contents. In fact, I suggested the Sieve of Eratosthenes task because I didn't like 100 doors in the first place!
::I don't really have anything against the optimized bounds for the sieve (Wikipedia mentions it, and I have a Forth program ready to go). Just make sure the algorithm is documented in the task description. --[[User:IanOsgood|IanOsgood]] 16:56, 3 December 2007 (MST)
 
In the task description: "you shouldn't optimize by using pre-computed wheels, i.e. '''assume''' you need only to cross out odd numbers (wheel based on 2), numbers equal to 1 or 5 modulo 6 (wheel based on 2 and 3)"
 
This might be clearer if it read "don't assume". The word "shouldn't" is supposed to apply distributively: you shouldn't optimize ... you shouldn't assume. But it's actually open to being interpreted as the opposite of the intended meaning, which is: Don't assume that the only numbers you need to sieve are those supplied by a pre-computed wheel. Adding the word "don't" would eliminate the ambiguity. Should I change it?
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.