Use [31398, 31468] for prime gap test
parent
7421bd2055
commit
ba8882db39
|
|
@ -2152,8 +2152,8 @@ bool TestIntegerBitops()
|
||||||
|
|
||||||
// Integer is missing a couple of tests...
|
// Integer is missing a couple of tests...
|
||||||
try {
|
try {
|
||||||
// All in range [90, 96] are composite
|
// A run of 71 composites; see http://en.wikipedia.org/wiki/Prime_gap
|
||||||
Integer x = Integer(GlobalRNG(), 90, 96, Integer::PRIME);
|
Integer x = Integer(GlobalRNG(), 31398, 31468, Integer::PRIME);
|
||||||
pass=false;
|
pass=false;
|
||||||
} catch (const Exception&) {
|
} catch (const Exception&) {
|
||||||
pass=true;
|
pass=true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue