10-10-2005 08:19 AM
10-10-2005 08:34 AM - edited 10-10-2005 08:34 AM
Message Edited by Ben on 10-10-2005 08:36 AM
10-10-2005 09:49 AM
I don't see why it would disqualify under the given rules. You're still generating the prime numbers. Whether you use an array of data or a formula is a technicality since you are meeting the requirement not to actually store the prime numbers themselves.
This is INDEED a way to do things, but whether it's the best? I also think an array of 5.7 million prime gaps (Even if they're U8) will disqualify the VI from the actual competition. Bruce has already said that generating the primes is supposed to be a major part of the challenge......
I may be thinking backwards about this, but why is that "making things even worse"?
Also, I believe that the primes UP TO 2.4 million (i.e. the prime is equal to or smaller than 2.4 million) are being calculated, making things even worse. This means that the actual primes generated are all less then 2.4 million. Have I understood correctly guys?
10-10-2005 10:05 AM
@shoneill wrote:
Hey, be careful throwing clues around like that.... 😉
The difference reaches max 206 up to the required 5.7 million primes. 😄
Clues...clues...clues... 😮
Yes, the 2.4M sub-problem was introduced by Chaos and has been used to gauge the prime generation portion of the problem. It is a quick way to compare relative speeds without polluting the times with the factoring, etc. I now typically test new algoritms with the Chaos limit, because it is quicker and involves less memory.
So, how small can you make a VI with the difference method? Sure the maximum difference is 206 but if you handle the first point seperately, you can throw away one bit, since they are all even. Still, you would need 5.7 x 7 bits, and you would not be able to go below a ~5MB VI. Bruce will throw it out! (For the Chaos problem, you could get away with 6bits/prime).
Instead of vague limits on the number of pre-recorded primes, we should simply place an upper limit on the VI size, in particular the "data" portion before the VI is run the first time!
10-10-2005 12:41 PM
10-10-2005 01:26 PM
@Ben wrote:
Can anyone explain what the relation between wood grain and prime numbers is?
10-10-2005 01:54 PM
Nice come back Christian!
Well that I know that Bruce will not permit my hack due to the "spirit of the rules" and because it violates your data size restriction, I should show my cards. ![]()
I dumped all of the primes less than 100M into a picture constant on the diagram. Technically speaking a picture is not an array.
When shaped as as a rectangle who's sides are the SQRT of the # of primes, the picture ends up looking just like wood grain!
I'd post it but the Exchange does not tolerate 21M attachements.
Well, I ain't done yet but I starting to shake. ![]()
Ben
10-10-2005 02:23 PM
@Ben wrote:I'd post it but the Exchange does not tolerate 21M attachements.
10-10-2005 04:05 PM - edited 10-10-2005 04:05 PM
As requested.
5.7M of primes mapped as pixel colors and saved as a diagram constant.
Message Edited by Ben on 10-10-2005 04:06 PM
10-11-2005 01:11 AM