Changes

Jump to navigation Jump to search
271 bytes added ,  08:45, 31 December 2018
revert edits to fix search where character encoding was a problem
This demo page
http://www.whatwg.org/demos/workers/primes/page.html
from the Web Hypertext Application Technology Working Group shows prime numbers. What I found interesting is that initially, it takes a few moments to find prime numbers; meaning that they are "far apart" as you examine every number up to say 1,000,000. But suddenly the demo application is spitting out prime numbers faster than you can read. So, apparently there are a lot of prime numbers once you get into the larger numbers. But this isn't actually true. If you [http://yoyo.cc.monash.edu.au/~bunyip/primes/ look at the distribution of primes], there are "more" smaller primes than larger primes(X < 200) <ref>http://primes.utm.edu/howmany.shtml</ref>. Hmm.
<source lang="html5">
With "workers" you can perform a computationally expensive task without interrupting the user interface.
In this example, the main document spawns a worker to (naively) compute prime numbers, and progressively displays the most recently found prime number. == Word of the Day ==pul-chri-tu-di-nous; adj. Very pleasing or delightful to look at - Characterized by, or having great physical beauty and appeal. {{References}}
[[Category:JavaScript]]

Navigation menu