Write a program to accept a number from the user and display all the prime numbers from one upto the number entered by user.