memoized prime finding
solved 41