a) The sum of the deleted numbers is always composite. Let the chosen rows be i1,…,ip, p≥2 and the chosen columns j1,…,jq, q≥2. The deleted numbers in row i1 are i1j1,i1j2,…,i1jq.
Likewise the deleted numbers in row i2 are i2j1,i2j2,…,i2jq and so on; for row ip they are ipj1,ipj2,…,ipjq. The total deleted sum is therefore S=(i1+⋯+ip)(j1+⋯+jq). Both factors are at least 2 (as p≥2,q≥2), hence S is composite.
b) The sum of all undeleted numbers can be a prime. Let the chosen rows be 2,3,…,16 and the chosen columns 2,3,…,16. Then the undeleted numbers are in the union of row 1 and column 1.
Their sum is 2(1+2+⋯+16)−1=271, which is a prime.