aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/examples/factor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/factor.cpp b/doc/examples/factor.cpp
index b0105426b..c4d37c92b 100644
--- a/doc/examples/factor.cpp
+++ b/doc/examples/factor.cpp
@@ -101,7 +101,7 @@ std::vector<BigInt> factorize(const BigInt& n_in,
while(n != 1)
{
- if(is_prime(n, rng))
+ if(check_prime(n, rng))
{
factors.push_back(n);
break;