Skip to content

Commit

Permalink
Update Time_Complexity.md
Browse files Browse the repository at this point in the history
Modify isPrime function
  • Loading branch information
stainedcreek authored Jun 22, 2024
1 parent 3200de1 commit b878af0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/content/ChapterOne/Time_Complexity.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void hello (int n){
```c
bool isPrime (int n){
if (num <= 1) return false;
for( int x = 2 ; x * x <= n ; x ++ )
if( n % x == 0 )
return false;
Expand Down

0 comments on commit b878af0

Please sign in to comment.