Computer Science, asked by adityasatheesh2005, 6 months ago

Write a program to create a tuple to store the prime numbers less than 100.

Answers

Answered by 12784
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
Math, 3 months ago