I think Infinity can be handled lot more elegantly in Python.
Here is my response with the same problem solved in Python.
Here is my response with the same problem solved in Python.
The `take` function is borrowed from Haskell. It feels lot more natural to say/read `take(10, primes())`, than `islice(primes(), 10)`.