Viagra, also known as sildenafil, functions as a prescription drug primarily used to treat impotence and PAH . It operates by increasing the flow of blood to the penis, enabling men to achieve and keep an erection for physical interaction. It's important that Viagra only be used under professional guidance and is never a solution for the underlying