Update
This commit is contained in:
parent
d4685988cf
commit
77b18c33d8
3 changed files with 10 additions and 4 deletions
2
prime.md
2
prime.md
|
@ -87,7 +87,7 @@ int isPrime(int n)
|
|||
if (n % (test + 1) == 0 || n % (test - 1) == 0)
|
||||
return 0;
|
||||
|
||||
test *= 6;
|
||||
test += 6;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue