DEV Community

Discussion on: Top 30 Javascript Interview Warmup Exercises Part 2

Collapse
 
q3flat profile image
q3flat

If you want to check whether is a number prime or not, you just have to go up to sqrt(n).

Collapse
 
1baga profile image
1baga

Please kindly explain

Some comments have been hidden by the post's author - find out more