Rate my first python prime checker I'm new to programming; I started about a week ago and started learning python.
Currently, I only know some basic arithmetic operations in addition to some basic knowledge about lists, dictionaries, strings, etc.

I tried testing what I learnt so far. I made this prime number checker, which works except when the numbers are really big.  Please rate it and suggest improvements that I can understand at my current level.

Here is the code:

'''
pr means the number we'll be working on
dl is a dictionary that contains our the dividend and the reaminder
x is the dividend
e is a list that contains all remainders
and what the program does as you might have guessed already
it makes a list of all remainders of the division of our number by every integer before it
and checks for the number 0
if it finds it then the number is not prime
and if it doesn't then it's prime
'''

pr = int(input("Enter your number "))

print("\n")

dl = {}

x = pr - 1
while x &lt; pr and x &gt; 1 :
    r = pr % x
    dl[x]= r
    x -= 1

e = list(dl.values())

if any( z == 0 for z in e ) :
    print(pr," is not a prime number")
else :
    print(pr," is a prime number")

print("\n")

input("Press Enter to close the program")
I'd have to rate your program a "D-Minus".


incorrectly labels 1, 0, and all negative numbers as prime!
runs in \$O(n)\$ time, instead of \$O(\sqrt n)\$ time
runs in \$O(n)\$ space, instead of \$O(1)\$ space


Other deficiencies:


'''docstrings''' should be used for describing "how" to use the module/class/method; comments should be used to explain how the code works
variable names are cryptic; too short to be descriptive
PEP8 guidelines are not consistently followed.  Operators like = should have 1 space on each side.  No space should be used after (, or before ), as well as not before :
a dictionary is being used to store a list of values; a simple list would suffice
dl.values() is an iterable; there is no need to convert it into a list in order to use in the for z in ...


As suggested by aaaaa says reinstate Monica,
please work on your solution and then submit it as a new question.