Question: Python 3.7 to be used. Thanks Assignment -- Prime Numbers with the Sieve of Eratosthenes 2 3 456 7 89 10 11 12 13 14
Assignment -- Prime Numbers with the Sieve of Eratosthenes 2 3 456 7 89 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2S 26 27 28 29 30 31|32 | 33 | 34 | 35 | 36 | 37 | 38|39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8586 87 88 89 90 91 92 93 94 95 96 97 98 99 100 40 points See Canvas for due date Create a menu-driven program that will calculate and display all the prime numbers between 2 and a user- entered limit. Your simple menu should have only 3 options: 1. 2. 3. Create a list of primes from 2 to n using the Sieve of Eratosthenes algorithm Display the prime numbers Quit Program particulars: nustuse Standard erfor Get a limit (type int) from the user to represent the upper limit of the list. There must be error checking on the input integer. If it not greater than 2, the program will print an error message and re-prompt. This process will continue until an integer greater than 2 is entered. You must use a try-except structure to trap both types of input errors (like letters where numbers should go) and range errors (like
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
