Problem 2: invalid memoization behaviour.

Prime calculation works when numbers are first
calculated, but when lookup occurs - tested number
is not being incremented, which results in invalid
prime sequences.