Learn practical skills, build real-world projects, and advance your career
Created 4 years ago
%%writefile primenumber.py
import sys
x=int(sys.stdin.readline())
y=int(sys.stdin.readline())
y=y+1
lst=[]
def prime(start,end):
for val in range(start,end):
if val>1:
for n in range(2,value):
if(val %n)==0:
break
else:
lst.append(val)
print(lst)
prime(x,y)
! python primenumber.py
import primenumber
primenumber.lst.append("End of list")
print(primenumber.lst)