DiscretePlot

WMA link


DiscretePlot[expr, {x, $n_{max}$}]

plots expr with x ranging from 1 to $n_{max}$.

DiscretePlot[expr, {x, $n_{min}$, $n_{max}$}]

plots expr with x ranging from $n_{min}$ to $n_{max}$.

DiscretePlot[expr, {x, $n_{min}$, $n_{max}$, dn}]

plots expr with x ranging from $n_{min}$ to $n_{max}$ usings steps dn.

DiscretePlot[{$expr_1$, $expr_2$, ...}, ...]

plots the values of all expri.

The number of primes for a number k:

is about the same as Sqrt[k] * 2.5:

Notice in the above that when the starting value, $n_{min}$, is 1, we can omit it.

A plot can contain several functions, using the same parameter, here x:

Compare with Plot.

DensityPlot
Histogram