A prime number is called a Mersenne prime if it can be written in the form 2

Question:

A prime number is called a Mersenne prime if it can be written in the form 2p - 1 for some positive integer p. Write a program that finds all Mersenne primes with p ? 100 and displays the output as shown below.image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: