I connected it to my laptop running Windows 10 and it squeaked that it could not find the driver, but I set it up manually instead and selected the "HP PhotoSmart Prem C310 series Class Driver" from the list of available drivers and it printed the test sheet just fine.
I wanted an old HP printer, as alike as possible to my old one that lasted for twenty years - without benefit if laptop, wifi or bluetooth. This is exactly what I got and long may it last!