Simple check for square root in a loop using integers alone
There was a situation where I couldn't get to use decimal / floating numbers in a variable or like in sqrt($n).
To check for a prime number, we need to check all odd numbers till the square root of a number for modulus 0. If n mod i is zero then it's...
anjanesh.dev2 min read