aboutsummaryrefslogtreecommitdiff
path: root/03_threads/program.mjs
diff options
context:
space:
mode:
Diffstat (limited to '03_threads/program.mjs')
-rw-r--r--03_threads/program.mjs6
1 files changed, 4 insertions, 2 deletions
diff --git a/03_threads/program.mjs b/03_threads/program.mjs
index db0a2c6..3bdb4ea 100644
--- a/03_threads/program.mjs
+++ b/03_threads/program.mjs
@@ -2,5 +2,7 @@ import Primes from "./build/primes.mjs"
2 2
3var primes = await Primes(); 3var primes = await Primes();
4 4
5const count = primes._primes_in_range(1, 100); 5var low = 1;
6console.log("There are " + count + " primes between 1 and 100"); 6var high = 10000000;
7const count = primes._primes_in_range(low, high);
8console.log("There are " + count + " primes between " + low + " and " + high);

Generated with cgit - Back to sebastiano.tronto.net