How to print prime numbers up to the user's entered integer?
问题 Good afternoon everyone, I'm currently trying to create a program that does the following: Develop a code that will print all prime numbers up to the user's entered number. An example of the output: Enter an integer (2 or above): 19 The prime numbers up to you integer are: 2 3 5 7 11 13 17 19 Unfortunately, there is also a list of "requirements" that need to be met as well: If the user enters a number below 2, your program should print a message that the number is not valid, and then stop. A