Mersenne Primes
Last updated
Last updated
Mersenne Primes take the form . Often we just loop through all possible Mersenne primes and check if either or are that.
This is very easy to do in Sage:
Then we can grab the th Mersenne prime using mersenne(n)
.