solved 36
solved 37. greatly improved isPrime() performance

improved Prime performance by putting the known primes as key in array
for quicker access than in_array()