if x < 2:
elif x == 2:
for n in range(2,x-1): if x%n==0: return False return True
Guys i dont fully understand what the second half of the code does (for n in range ....)
can someone please explain. Thanks really appreciated.