add primes[] array to store all prime numbers