Create isPrime-memo.js

This function calculates and memoizes all primes through `n` and returns whether `n` is included.