From 0b6ccd14e331d418ecd861088628267490b251c1 Mon Sep 17 00:00:00 2001 From: Michael BAUDIN Date: Sun, 12 May 2024 22:08:49 +0200 Subject: [PATCH] Closes #2653 --- lib/src/Base/Stat/LowDiscrepancySequenceImplementation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Base/Stat/LowDiscrepancySequenceImplementation.cxx b/lib/src/Base/Stat/LowDiscrepancySequenceImplementation.cxx index e634ca6a2a..8d9c6a25d1 100644 --- a/lib/src/Base/Stat/LowDiscrepancySequenceImplementation.cxx +++ b/lib/src/Base/Stat/LowDiscrepancySequenceImplementation.cxx @@ -381,9 +381,9 @@ Unsigned64BitsInteger LowDiscrepancySequenceImplementation::GetNextPrimeNumber(c #ifdef OPENTURNS_HAVE_PRIMESIEVE primesieve::iterator it; #if PRIMESIEVE_VERSION_MAJOR >= 11 - it.jump_to(n - 1); + it.jump_to(n); #else - it.skipto(n - 1); + it.skipto(n); #endif return it.next_prime(); #else