Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python Creating Format Strings 1 point As of December 22, 2018, the largest known prime number is the 51st Mersenne prime, or 282,589,933 1, which
python
Creating Format Strings 1 point As of December 22, 2018, the largest known prime number is the 51st Mersenne prime, or 282,589,933 1, which has 24,862,048 digits. Of course, this Mersenne prime takes a while to calculate, so instead I want you to determine the value of the 13th Mersenne prime, or 2521 1. Embed this calculation in an f-string named mprime. The f-string will of course immediately evaluate to produce a string containing the 13th Mersenne prime as text. The type of mprime should be str not int. print doesn't turn mprime into a string. Starter code (click to view) Answer* 1 mprime = (2**521)-1 2 print (f'{(2**521)-1}') Your answer is not correct. Here is some feedback on your code: The type of `mprime' should be str`. Your answer still needs some work. Keep trying. Execution time: 0.0 S -- Time limit: 10.0 s Your code ran on relate-04.cs.illinois.edu. Your code printed the following output: 6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391486 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started