0

I made a program to find primes, but it can't find any prime less that 7(e.g. 2, 3, 5) any ideas?

```
import math
from math import sqrt
x = 1
y = raw_input("What number do you wish to find all the primes below? ")
y = int(y)
while x < y:
a = 2
while a < x:
if x % a == 0:
a = x
elif a == x-1:
if y % a == 0:
a = x
else:
print x
a = x
else:
a = a+1
x = x+1
```