MersennePrimeExponentQ

MersennePrimeExponentQ[n]

returns True if n is a Mersenne prime exponent, and False otherwise.

Details

  • A positive integer n is a Mersenne prime exponent if and only if the Mersenne number is prime.
  • Number 1 is not a Mersenne prime exponent.

Examples

open allclose all

Basic Examples  (2)

Test whether a number is a Mersenne prime exponent:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Find all Mersenne prime exponents smaller than 10000:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Properties & Relations  (4)

Possible Issues  (1)

See Also

MersennePrimeExponent  PrimeQ  Prime  PerfectNumberQ  PerfectNumber

Introduced in 2016
(10.4)