You can find quite a lot of theory concerning the thread of screws which we is not going to go into to here, but you could find an excellent detailed description here on Wikipedia.
You can utilize a Robertson’s bit https://bookmarknap.com/story8308575/new-step-by-step-map-for-types-of-screw-heads