creates an array of prime numbers