Problem 525. Mersenne Primes
31.26% Correct | 68.74% Incorrect
Last Solution submitted on Jun 03, 2023
Show 1 older comment
jean claude on 21 Oct 2017
2047 must turn true... gotta deal with this
John D'Errico on 22 Feb 2018
No. 2047 is not a Mersenne prime. 2047=23*89, even though it is true that 2047=2^11-1.
Minh-Khoi LE on 22 Feb 2022
Some correct solutions are not logically correct, the test case must be fixed
Brandon on 30 May 2023 at 20:38
You need not specify that p is prime in the formula M = 2^p - 1 as it is redundant to do so.
Solution CommentsShow comments
Problem Recent Solvers604
Create an n-by-n null matrix and fill with ones certain positions
Pernicious Anniversary Problem
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!