1#not made by me but a person name "Concerned Cod" i put only input in it so it makes easy to copy-paste LOL
2start = int(input("enter start range : "))
3end = int(input("end range : "))
4
5for i in range(start,end):
6 if i>1:
7 for j in range(2,i):
8 if(i % j==0):
9 break
10 else:
11 print(i)
1n=int(input("Enter the number till you want to check: "))
2primes = []
3for i in range (2, n+1):
4 for j in range(2, i):
5 if i%j == 0:
6 break
7 else:
8 primes.append(i)
9print(primes)