Primary productivity in marine ecosystems is mainly limited by the availability of essential nutrients, particularly nitrogen and phosphorus.
When these nutrients are scarce, the growth of phytoplankton and other primary producers is reduced.
Hence,
\[
\boxed{\text{Nitrogen and phosphorus availability}}
\]
is the correct answer.
Therefore,
\[
\boxed{(B)}
\]