If you install nvidia driver in elementary os (go to AppCenter and it's under updates as a Free app) the 4k screen works perfectly. If you disable the laptop screen you might need to fix the scaling with the gsettings
command (see commands below)
https://jakob.soy/blog/2016/scale-elementary-os-hdpi/
https://elementaryos.stackexchange.com/questions/15591/command-to-enable-60hz-on-4k-display