The exact time required to boil fresh shrimp will depend on the size of the shrimp. In general, for small to medium-sized shrimp, you should boil them for 2-3 minutes until they turn pink and their flesh becomes slightly firm. Larger shrimp may take 3-4 minutes to cook properly. However, it is important not to overcook the shrimp, as this can make them tough and rubbery.
To boil fresh shrimp, bring a large pot of salted water to a rolling boil. Add the shrimp to the pot and stir gently. Cook the shrimp until they turn pink and float to the surface of the water, which should take just a few minutes. Once cooked, drain the shrimp and rinse them briefly with cold water to stop the cooking process. You can then serve them warm or chilled as desired.