Loops: prime_numbers_YI.py

Assignment:
Write a program, prime_numbers_YI.py that prompts the user for an integer and then prints all the prime numbers up to that number. Prime numbers are numbers that are only divisible by itself and the number 1.
Note: 1 is not a prime number
Example: if the user enters 15, the output should look like this

Up to what number would you like to display all prime numbers? 15
All the prime numbers from 2 to 15 are:
2
3
5
7
11
13

screen-shot-2016-10-11-at-1-18-54-pm