Sperm?¿

How long can sperm live outside the body, I’ve heard it’s a myth that it lives only seconds but others say it lives until it dries...just curious please no hateful comments/answers just curious about how long it lives