/Primes_array

Make an array of prime numbers

Primary LanguageCommon LispGNU General Public License v3.0GPL-3.0

Primes_array

Description

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.

Functions

is_prime

Checks if a number is prime.

primes_into_array

Makes an array with the first n prime numbers or the prime numbers below n.

write_file

Creates or supersedes a text file and writes the array in it.

load_file

Loads the array from a text file.