From ba8882db390dac1c0cf67520e6e3897f5006b8c3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 8 May 2017 17:03:06 -0400 Subject: [PATCH] Use [31398, 31468] for prime gap test --- validat0.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validat0.cpp b/validat0.cpp index 629fa11b..5f9912a2 100644 --- a/validat0.cpp +++ b/validat0.cpp @@ -2152,8 +2152,8 @@ bool TestIntegerBitops() // Integer is missing a couple of tests... try { - // All in range [90, 96] are composite - Integer x = Integer(GlobalRNG(), 90, 96, Integer::PRIME); + // A run of 71 composites; see http://en.wikipedia.org/wiki/Prime_gap + Integer x = Integer(GlobalRNG(), 31398, 31468, Integer::PRIME); pass=false; } catch (const Exception&) { pass=true;