Which model is the lens? K, M or A, e.g. Pentax, Pentax-M, Pentax-A?
The A's use M1.7 × 4 screws (1.7mm wide - 4mm long). Thread pitch doesn't matter at these sizes as only one pitch is used per diameter. Engineers love to use the same components as much as possible so I don't see these changing much from lens to lens. M1.7 wide screws are the most common size screws you'll find in Pentax lenses and camera bodies. The length varies depending on the application.
You can try these:
M1.7x4 Black Zinc Pan Head Machine Screw #21528 [21528] : Metric Screws!, We have the screws you need!
The only reason the front ring would be loose and the screws missing is that the lens was taken apart or very badly abused. It must have been taken apart for a reason so there are probably problems or other missing parts.