Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/marijnh/Eloquent-JavaScript
/ 22_2_faster_prime_numbers.js
File
22_2_faster_prime_numbers.js
code/solutions/22_2_faster_prime_numbers.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
function
* primes() {
2
let
found = [];
3
for
(
let
n = 2;; n++) {
4
let
skip = false, root = Math.sqrt(n);
Callers
nothing calls this directly
Calls
1
measurePrimes
Function · 0.70
Tested by
no test coverage detected