AngouriMath

Try it live

Navigation

← Back to list of members

IsPrime​(PeterO.​Numbers.​EInteger)

 Method (no overloads)

Summary

Whether the whole number is prime, or null where it is not decided. Miller–Rabin to the
first thirteen primes is exact below 3317044064679887385961981; past it a witness still proves a
number composite, a Mersenne number 2^p - 1 is decided by Lucas–Lehmer, and a number that passes is
left open, since passing is not a proof. This was trial division, exact only below 2^63, about 1.5e9
divisions for a prime near it, and for one past 3037000499^2 never finishing, the square of the divisor
overflowing. https://github.com/asc-community/AngouriMath/issues/2230

























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