The original code is a bit of a CPU-killer that you can't easily stop. http://en.wikipedia.org/wiki/Web_Workers
Terminate code derived from https://developer.mozilla.org/en/Using_web_workers
The highest prime number discovered so far is: