Prime Updates

* Refactored prime checker into isPrime and improved method using only previously found primes (faster)
* Better input validation
* Specs for prime array and table