It would take at least 500 survivors…

It would take at least 500 survivors to repopulate the earth (without creating major issues because of inbreeding) after an apocalypse.