Hi Mikrom,
Thanx for your help.
Your code has reduced processing time by over 50%. Very happy. (See below).
I can now test large Primes.
One more question:
For very large Primes where K = 22,000,000, the program either a) stalls or b) takes an inordinate amount of time, after which I just...