The main thread is a juggler. Don't hand him a box.
Every button runs the same 1.4 s prime search for real. Give it to the main thread and the juggler freezes mid-throw and drops every ball, just like a page that stops answering clicks. Hand it to a Web Worker and he keeps juggling. Split it across up to 16 workers, one per core, and the crew does several times the work in the same time.
This stage runs in your browser and needs JavaScript. The search it demonstrates is on GitHub.
The most common mistake: heavy work on the main thread. Every click, scroll and animation waits behind it.
Same code, moved off the main thread. The juggler never notices.
Between 2 and 16 workers, one per core your browser reports, each checking its own slice.
The frame tape needs JavaScript.
numbers checked: none yet
In a mate round one person holds the gourd. The mate is not a microphone: short turns, over 50 ms and the whole round waits.
Workers get their own gourd. They talk by postMessage.