[Solved]4 Prime Digits Name Primedigitsjava Digits Massive Mersenne Primes Contained Text Files Jo Q37105528
Prime Digits
4. Prime Digits Name: PrimeDigits.java All the digits to massive Mersenne primes are contained in text files. Your job is to write a program that takes one of these text file names as input from the user and displays how many times each digit appears in the prime number as well as the total number of digits. ZIP files containing such text files can be found at: http://www.mersenne.org/primes/ For example, the most recently discovered Mersenne prime can found at: http:/l www.mersenne.org/primes/digits/M74207281.zip. You’ll need to download the ZIP file and unzip it to access the text file Hint: Subtracting a digit character by .0′ produces the value of that digit character as an integer Sample Run: Enter file name: M74207281. txt Os: 2233259 1s: 2233437 2s: 2234193 3s: 2232135 4s: 2232328 5s: 2236279 6s: 2234254 7s: 2233628 8s: 2234257 9s: 2234848 Total: 22338618 Show transcribed image text 4. Prime Digits Name: PrimeDigits.java All the digits to massive Mersenne primes are contained in text files. Your job is to write a program that takes one of these text file names as input from the user and displays how many times each digit appears in the prime number as well as the total number of digits. ZIP files containing such text files can be found at: http://www.mersenne.org/primes/ For example, the most recently discovered Mersenne prime can found at: http:/l www.mersenne.org/primes/digits/M74207281.zip. You’ll need to download the ZIP file and unzip it to access the text file Hint: Subtracting a digit character by .0′ produces the value of that digit character as an integer Sample Run: Enter file name: M74207281. txt Os: 2233259 1s: 2233437 2s: 2234193 3s: 2232135 4s: 2232328 5s: 2236279 6s: 2234254 7s: 2233628 8s: 2234257 9s: 2234848 Total: 22338618
Expert Answer
Answer to 4. Prime Digits Name: PrimeDigits.java All the digits to massive Mersenne primes are contained in text files. Your job i… . . .
OR

