primes code from Week 11/Lazy Eval
added parity exercise 8