Prime numbers and Brownian motion