rustindia / Rust-for-undergrads

C/C++ programming probelms re-written in Rust
https://rustindia.github.io/Rust-for-undergrads/
GNU General Public License v3.0
249 stars 113 forks source link

Update prime_numbers.rs #66

Closed NP-compete closed 6 years ago

NP-compete commented 6 years ago

Loop to sqrt(n) The condition can be checked to sqrt(n)