I’m currently in the process of job hunting, so to de-stress, I’ve been playing with Haskell a lot. Here’s a very short function to generate lists of prime numbers.
If instead, you want a list containing n primes:
The next project will possibly be something slightly more practical.
edited to fix a minor issue with second version