Write a program to create a tuple to store the prime numbers less than 100.
Answers
Answered by
0
Answer:
ll=int(input("Enter lower limit:"))
ul=int(input("Enter upper limit:"))
fac=0
t=( )
for i in range(ll,ul+1):
for j in range(2,i+1):
if i%j==0:
fac+=1
else:
t+=i
print("Tuple of prime no.s in the given range is:",t)
Similar questions