This is awesome, and could be a fun project for introductory students. It gives practice with:
- Extracting digits from numbers (easily done with a few function calls in Python, or some math)
- Calculating frequency of a known set of items in a sequence
- Some application of simple mathematical formulas[1]
I wouldn't mind trying this at some point...
[1] https://en.wikipedia.org/wiki/Benford%27s_law#Statistical_te...