A recent study found that Viagra, known for treating erectile dysfunction, can also help prevent memory problems related to vascular dementia by increasing cerebral blood flow and enhancing blood vessel function.