# HG changeset patch # User Arun Giridhar # Date 1712958436 14400 # Node ID 4bb532314db1c7c8b697369d7a167aae4e7e7ca6 # Parent e28b0e670d18e74e5564cb850f34ad22f6d11a85 __isprimelarge__.cc: Remove panic_unless from GCD code diff -r e28b0e670d18 -r 4bb532314db1 libinterp/corefcn/__isprimelarge__.cc --- a/libinterp/corefcn/__isprimelarge__.cc Fri Apr 12 15:59:30 2024 -0400 +++ b/libinterp/corefcn/__isprimelarge__.cc Fri Apr 12 17:47:16 2024 -0400 @@ -241,10 +241,7 @@ return pollardrho (n, c + 2); if (g > 1) // found GCD ==> exit loop properly - { - panic_unless (n % g == 0); // theoretical possibility of GCD error - return g; - } + return g; } }