Mersenne prime numbers

When 2^n -1 is prime, it is said to be a Mersenne prime. In this article, we have explored this concept of Mersenne prime numbers in depth along with algorithms + implementations to find Mersenne prime numbers.

Table of contentsDefinitionsAlgorithmTime complexityA way of implementationThe Lucas-Lehmer Test1. Definitions

A prime number is a number that is only divisible to 1 and itself.

The first few primes are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37 …

Notice that 1 is not part of thi...

 •  0 comments  •  flag
Share on Twitter
Published on September 23, 2022 13:24
No comments have been added yet.