10-07-2005 03:56 PM
10-07-2005 04:28 PM - edited 10-07-2005 04:28 PM
Finally we're getting some action here. Thanks CC. 🙂
Of course you assume that I did not improve my algoritm since then... that posted VI was just a "baseline". (Without diagram, your's is 18k, mine only 13k!) ;).
You don't seem to trust passwording the diagram. Why did you have to remove the diagram, now we cannot convert it to other LabVIEW version. 😞
OTOH, your filename is a bit too telling. You are actually using a sieve??? 😮
Message Edited by altenbach on 10-07-2005 02:45 PM
10-07-2005 05:00 PM
WAIT!!!!
You're cheating! You only calculate the primes up to 2'000'000, not 2'400'000!
(You should also format the output as I32, not U32 to be compatible with the challenge.)
10-07-2005 05:27 PM
altenbach a écrit:
Finally we're getting some action here. Thanks CC. 🙂
Of course you assume that I did not improve my algoritm since then... that posted VI was just a "baseline". (Without diagram, your's is 18k, mine only 13k!) ;).
You don't seem to trust passwording the diagram. Why did you have to remove the diagram, now we cannot convert it to other LabVIEW version. 😞
OTOH, your filename is a bit too telling. You are actually using a sieve??? 😮
No assumption here. Just using your vi as reference. Sure you improved your coding (BTW, doublecheck your coding style... Ben is lurking around...)
I'm using the Erathostene sieve. No need to keep that a secret. Of course there are some faster methods, but, as you said, it's a baseline.
10-07-2005 06:20 PM - edited 10-07-2005 06:20 PM
altenbach a écrit: You're cheating! You only calculate the primes up to 2'000'000, not 2'400'000!
Message Edité par chilly charly le 10-08-2005 01:21 AM
10-07-2005 06:33 PM
Ahh, that's better 😄
And ... more surprisingly... the resulting output array is now identical to my version. 🙂 (maybe we're both making the same mistakes...)
10-08-2005 01:56 AM - edited 10-08-2005 01:56 AM
altenbach a écrit: And ... more surprisingly... the resulting output array is now identical to my version. 🙂 (maybe we're both making the same mistakes...)
That's normal : I'm using your array as reference. As long as my results differ from yours, I add wires here and there until things become identical. 🙂
Hope you don't mind being the reference for timing and results. I propose to use the Altenbach (symbol Alt) as unit.
My vi runs at 0.78 Alt. 😄
Alternatively, you could consider that your vi is running at 1.28 CC :D:D:D
Message Edité par chilly charly le 10-08-2005 09:01 AM
10-08-2005 03:00 AM - edited 10-08-2005 03:00 AM
Hi folks,
Message Edited by Dynamik on 10-08-2005 03:12 AM
10-08-2005 06:44 AM
10-08-2005 10:27 AM
@chilly charly wrote:
As long as my results differ from yours, I add wires here and there until things become identical. 🙂