Follow these steps carefully, especially if you have previously attempted to connect your J7 Prime and failed.
If you have previous Samsung drivers installed, go to Control Panel > Programs and Features and uninstall them to avoid conflicts. driver usb samsung j7 prime