Man sentenced to prison in cocaine case