This question already has an answer here:
Prime numbers are simple, right? Well, now you get your chance to find out!
You must write a program or function that takes an input
n and outputs the first
n prime numbers.
Example Input and Output
You must not include any of the following builtin functions:
A list of prime numbers
List of divisors
Your output must be in a convenient, unambiguous list format.
This is code-golf, so the shortest answer in bytes wins.