Sale of second home that I lived in

We sold our second home this year that we purchased in 2016. We never rented it out or claimed anything from it on our taxes. We did live it in 2 out of the past 5 years so does it qualify as sale of primary residence?