You must be a resident of the property for the entire period of ownership to avoid CGT in the UK. PRR applies if the property is your primary and only residence.