AngouriMath

Try it live

Navigation

← Back to list of members

IsPrime

 Property

Summary

Detemine whether integer is prime or not.

Remarks

By Miller–Rabin and Lucas–Lehmer, as membership in PP is. It was whether the number had two
divisors, by trial division over long, so 2^89 - 1 threw OverflowException and the
largest prime below 2^63 did not finish. Where primality is not decided -- past
3317044064679887385961981, for a number that is not a Mersenne number and passes every test --
it throws NotSufficientlySupportedException.
https://github.com/asc-community/AngouriMath/issues/2341

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6091 pages online