If you want to check whether is a number prime or not, you just have to go up to sqrt(n).
Please kindly explain
Some comments have been hidden by the post's author - find out more
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.