Finished getPrimeArray

I think? Still needs test cases