Welcome aboard, enjoy taking pics with your K10.
That lens is for canon, no use for pentax at all.
FYI this is a useful reference if you are looking at shopping around for vintage/film era legacy lens options:
https://vintagelens.nl/2018/02/19/slr-lens-mount-identification-guide-richard-oleson/
The K10 isn't the best option for non autofocus lenses IMO because it doesn't have live view. You do have a visual cue in the view finder to help you with manual focus, but magnified live view is the most accurate tool.
As already mentioned, it all depends what your photography interests might be as to what lenses you might pursue. This is my standard take as far as the vintage MF possibilities go:
What to pursue?
1. "Nifty fifty". The 50mm "kit" lenses sold with 35mm fim cameras give eye-similar field of view on full frame, more portrait-like moderate telephoto on apsc sized sensors like the K10. Their immediate advantages over typical 18-55mm/similar digital kit lens are speed (F1.7/1.8 is typical vs f5.6 - more than 3 stops advantage) and IQ (the competitive market meant that manufacturers didn't want to be considered inferior, and even by the 1970's the design of lenses of this focal length was well understood and well refined). And final advantage - price. These can be picked up for the price of a coffee and cake. My smc-a 50mm f1.7 is my most used lens.
2. Quality macro. Close focus photography is an obvious photographic avenue to go down and while you can certainly do surprisingly well for many things (ebay pics with my G1 + 14-42mm kit lens + CF filter) with eg a close focus filter on your digital kit lens, there's not much to beat the genuine article - typically 90mm/100mm/105mm lens with focus to 1:2 or 1:1 reproduction. AF is much less useful in macro, the camera doesn't really know exactly where you want your plane of focus so the MF vs AF arguement is much less pertinent. Vivitar (a number of different ones by different manufacturers) and tamron are the most common, tamron tend to be the best value, not difficult get one of the adaptall 90mm for around a hundred bucks or even less.
Also 90mm is ideal portrait focal length on apsc, and the tack sharp iq makes them great landscape lenses.
3. (Other) Quality primes. eg 135mm - this was also a very popular focal length and a well refined optical design meaning you rarely go wrong with one - high iq. OEM (inc takumars, pentax smc's ) and Soviet era lenses like Jupiter, Tair, Carl Zeiss Jena are immediate suggestions.
One caveat: wide angle in the digital era has definitely improved beyond the norm of the film era (as a simple generalisation), and there can be issues with vintage 24mm/28mm like field curvature on digital. Still worth judiciously seeking out the plums mind you, and 28mm is approx like a standard lens on apsc. Check out the
28mm club.
4. Telephotos. While modern big lenses really are radically good, if you'd rather spend $50 instead of $500 or $5000 there is lots of choice. . Browse the
300mm+ lens club and the lens reviews for some ideas and results insight.
5. Lenses of particular interest/character. Mirror lenses are one of the first to come to mind in this category, tamron are the ones to go for, Soviet ones like Rubinar or MTO can also be very good and interesting (avoid cheap new ones off amazon). Then there are lenses known for eg bubble or swirly bokeh (helios for the latter).
6. Iconic/historic zooms. As per comment re wide angles, modern zooms as a rule are simply better. But it's still worth seeking out the plums, indeed that's the game! Vivitar serries 1, tamron adaptalls, contax/zeiss etc.