Write a python script that checks if integer numbers between 1 and an integer input from a user are prime numbers (Hint: use the range function to loop between 0 and an integer input).
In a case where prime numbers are identified then add all prime numbers to a new list and display the list, in case where a number is not a prime number display an error message.
Comments