Go to System → Settings → Checkout

Set to OFF to show prices only when a customer is logged in. If Guest customers go to the product page they get the message "Please login or register to see the price or to order.