I am making a quick program that will ask the user for a number and then output all the prime numbers up to that number:

```
n=int(input("Enter a number: "))
a=2
if n<=1:
    n=int(input("Enter another number: "))
while a<n:
    for i in range(2,n):
        if a%i==0:
            break
        else:
            print (a)
            break
    a=a+1

```

The problem I am having is that it won't print out `2`. For example, if I use `20` as my `n` value, it will print:

```
Enter a number: 20
3
5
7
9
11
13
15
17
19

```