Erdős–Kac Lab
Probabilistic number theory

Erdős–Kac Lab

For n ≤ x, the count ω(n) of distinct prime factors is approximately normal with mean and variance log log x. Pick an ω-like function, compute it exactly over a range, and compare the histogram with the Gaussian and with a prime-by-prime probabilistic model.

…

Distribution of (ω − μ)/σ

Show values as a table

Mean and variance as the range grows

This computation