Calculate the first n prime numbers or the prime numbers below n and store them into an array. You can also write that array into a text file and load them from it.
Checks if a number is prime.
Makes an array with the first n prime numbers or the prime numbers below n.
Creates or supersedes a text file and writes the array in it.
Loads the array from a text file.