Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 423 Bytes

README.md

File metadata and controls

10 lines (5 loc) · 423 Bytes

Calculating-primes

Calculating primes is slow just like painting the dom with charts.

In this example i'm using the Sieve of Erosthenes to calculate the primes up to 20 million.

I am using a web worker in the background to show how more complex and slow tasks like this can be run in the background and not block the first paint of the browser.

Edit on StackBlitz ⚡️