Viagra, technically called sildenafil, is primarily prescribed to treat male dysfunction and pulmonary arterial high blood pressure . This condition is a problem where access to the penis is reduced, making it hard to get an erection . While most widely recognized for its impact on ED, Viagra can