unchecked_factorial, unchecked_bernoulli_b2n and prime.
Improve error handling and overflow-estimation in bernoulli_details.hpp.