Arvin KushwahaJan 27, 2021, 3:41 PM
Well, in that case, here's my answer in Python
g = lambda x: (print(x) if not any([x%i == 0 for i in (range(2, x) if x < 10 else range(2, int(x**0.5)))]) and x >= 2 else False) or g(x+1)
g(0) # Or any number you wish to start fromOf course, it does have the limitation of recursive depth...