diff --git a/range.py b/range.py new file mode 100644 index 0000000..89b58db --- /dev/null +++ b/range.py @@ -0,0 +1,7 @@ +for i in range(1,1001): + if i >1: + for j in range(2,i): + if i%j == 0: + break + else: + print(i,end=" ") \ No newline at end of file