Humanity may face the risk of extinction by 2100 due to the malicious use of artificial intelligence or a nuclear conflict.