Adding a util method to return an array of primes