LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Very poor in array's

How can you copy my logic if you can't even copy my user name without misspellings. 😉

Message 21 of 23
(649 Views)

"(Long ago, I wrote a VI that is pure LabVIEW and finds all prime number with 8 or less digits in about 5 seconds on my 5 year old laptop )"

 

Wow, without saying how you did it, how did you do it?  Any hints?

 

It sounded like a fun challenge, until I tried.  I looked at 2-1200 and found 197 prime numbers in 4.7 seconds, looking at 2-2400 it took 31 second and only found 357 prime numbers.  I have a very long way to go before I even approach the same universe where your program runs in 5 seconds.

 

Besides I can always tell the boss I am working on my LabVIEW skills, right?

0 Kudos
Message 22 of 23
(609 Views)

@_Bryan wrote:

Wow, without saying how you did it, how did you do it?  Any hints?



I was using a simple implmenetation of the Sieve_of_Eratosthenes.

 

(In order not to dilute this thread, I sent you a personal message. Look for an envelope near the upper right corner, below the search button. ...)

Message 23 of 23
(595 Views)