I agree Steve, I posted that question quite a few posts ago, but then again even if the OP does not reply it is an interesting thought of how to do something in code that you have never done before.
Perhaps too much time on my hands (probably goes for DR as well), Actually, my last post contained an error, once the prime generator has run to populate the bit array the logic should be:
IF Prime_Array[Analogue] = true then ........
so therefore if the analogue value was a prime number then it would run the timer, no need for loops so only overhead on scan time is during start up.
Perhaps too much time on my hands (probably goes for DR as well), Actually, my last post contained an error, once the prime generator has run to populate the bit array the logic should be:
IF Prime_Array[Analogue] = true then ........
so therefore if the analogue value was a prime number then it would run the timer, no need for loops so only overhead on scan time is during start up.