Hi all,
Unfortunately we (or rather Fredrik) has discovered a bug in fmpz_is_strong_probabprime which in turn (theoretically at least) affected fmpz_is_probabprime and most likely also fmpz_is_prime (though the impact there might not have been great).
The bug has now been fixed in trunk and test code has been added.
This particular bug should not have gone unnoticed for so long and is rather an embarrassment. It's probably one of the five most serious bugs ever found in Flint.
Primality tests tend to be very hard to fool, so detecting bugs through standard testing is rather hard.
This is not the only bug that has ever been found in Flint primality testing, so we urge everyone using it to treat it with suspicion, i.e. assume that it is not rigorous for your needs until you have done your own tests to verify that it is.
Fortunately there has been no release with a competitive fmpz_is_prime function that has been carefully examined by us, so we most probably caught this just in time. However, we are aware that a number of people have been using that functionality already, which is why I'm reporting it here.
Bill.