Skip to content

Commit

Permalink
Merge pull request #1 from HarshithSimha/temp
Browse files Browse the repository at this point in the history
Reduce time complexity
  • Loading branch information
HarshithSimha committed Oct 5, 2022
2 parents 3b7503a + e702877 commit e35c6f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions prime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ for (int i = 2; i <n; i++)
{
cout<< "Not prime";
flag--;
break;
return 0;
}
}
if (flag==1)
{
cout<< "Prime";
}

return 0;
}
Binary file modified prime.exe
Binary file not shown.

0 comments on commit e35c6f3

Please sign in to comment.