Initial version with resumable prime finder