Fixed some typos
This commit is contained in:
@@ -55,7 +55,7 @@ bool IsPrime(int n) {
|
||||
|
||||
// Try to divide n by every odd number i, starting from 3
|
||||
for (int i = 3; ; i += 2) {
|
||||
// We only have to try i up to the squre root of n
|
||||
// We only have to try i up to the square root of n
|
||||
if (i > n/i) break;
|
||||
|
||||
// Now, we have i <= n/i < n.
|
||||
|
||||
Reference in New Issue
Block a user