Add method for returning first N primes

TODO: fix issue where sometimes a composite is still left in. For instance,
getFirstNPrimes(100) returns a list of 99 primes, and the last element is a
composite number. Oddly enough getFirstNPrimes(115) will return only primes.