Best way to wash after ejaculation

Hi All,

Can anyone let me know, what is the maximum time sperm can live outside the human body please?
Also what is the best way to wash the body after sperm ejaculation without having pregnancy risk?

Thank you.