To reap the cognitive benefits of swimming, it is recommended to swim at least three times a week for 30 minutes per session.