Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
gus_massa
3y ago
0 comments
Share
That isPrime function does not even cut at sqrt(n). Asking for the state of the art isPrime function is too much, but the sqrt trick is the very first step and it's free. (IIRC, the faster version uses i*i<n)
undefined | Better HN
0 comments
No comments yet.