I have a data set of two groups of individuals that I want to compare. The data contains who survived and who didn't after 40 days and after 1 year. So this is not a numerical data but a kind of 0/1 data (survive/did not survive).
What is the test I should use?

Thank you very much,