prime_lambda: adds lambda() way of generating primes