Skip to content

Commit 9dbbdc1

Browse files
committed
typo "need (to) change approach.."
1 parent cf2a2d7 commit 9dbbdc1

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/12-while-for/7-list-primes

1 file changed

+1
-1
lines changed

1-js/02-first-steps/12-while-for/7-list-primes/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ for (let i = 2; i <= n; i++) { // for each i...
2626
}
2727
```
2828

29-
There's a lot of space to opimize it. For instance, we could look for the divisors from `2` to square root of `i`. But anyway, if we want to be really efficient for large intervals, we need change the approach and rely on advanced maths and complex algorithms like [Quadratic sieve](https://en.wikipedia.org/wiki/Quadratic_sieve), [General number field sieve](https://en.wikipedia.org/wiki/General_number_field_sieve) etc.
29+
There's a lot of space to opimize it. For instance, we could look for the divisors from `2` to square root of `i`. But anyway, if we want to be really efficient for large intervals, we need to change the approach and rely on advanced maths and complex algorithms like [Quadratic sieve](https://en.wikipedia.org/wiki/Quadratic_sieve), [General number field sieve](https://en.wikipedia.org/wiki/General_number_field_sieve) etc.

0 commit comments

Comments
 (0)