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...
Markdown supported · ⌘↵ to post
No responses yet.