🐍 Have the program in Python to find prime numbers until the user chooses to stop asking for the next one. Solution import math def getprimes(): primes = [2] num = 3 while True: isprime = True numsqrt = int(math.sqrt(num)+1) for i in primes: if i<=numsqrt: if (num%i==0): isprime = False break else: break if isprime: primes.append(num) yield num num += 2 if __name__==...
Project Weekay | Resume | LinkedIn Profile
NodeJS, AWS, MongoDB, ReactJS, Django, Python, ML with Scikit Learn, Matplotlib, Seaborn
Engineering, UX, Marketing, Product Designing, Business
sayhellotovinit@gmail.com | +91 99239 08880 | Pune, India