Skip to content

Commit 25c03cf

Browse files
authored
Merge pull request #286 from stainedcreek/patch-1
Update Time_Complexity.md
2 parents 3200de1 + b878af0 commit 25c03cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

website/content/ChapterOne/Time_Complexity.md

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void hello (int n){
4444
4545
```c
4646
bool isPrime (int n){
47+
if (num <= 1) return false;
4748
for( int x = 2 ; x * x <= n ; x ++ )
4849
if( n % x == 0 )
4950
return false;

0 commit comments

Comments
 (0)