Realize memory recall function.
Fix primality test behavior.