A note on Landau's formula