Skip to content

Commit

Permalink
fix tc_common prime judgment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
miojizzy authored and ruanshudong committed Mar 4, 2021
1 parent 64ce7ae commit 98f37a9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion util/src/tc_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,6 @@ void TC_Common::ignorePipe()
bool TC_Common::isPrimeNumber(size_t n)
{
size_t nn = (size_t)sqrt((double)n);
for(size_t i = 2; i <= nn;i++)
{
if (n % i == 0)
{
Expand Down

0 comments on commit 98f37a9

Please sign in to comment.