(Mersenne prime) 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≤ 31 and displays the output as follows:
belongs to book: Introduction to Java Programming, Comprehensive Version (10th Edition)|Y. Danial liang|10th edition| Chapter number:6| Question number:28
All Answers
total answers (1)
PrimeNumberMethod.java
need an explanation for this answer? contact us directly to get an explanation for this answer