Cortex starts at M0 and goes all the way up to cortex-m7.
Cortex-Mx series is a core chip produced by ARM company, Mx chip series is mainly for low-cost real-time applications.
M X chips are further divided into different series of products such as M0, M1, M2, M3, M4 and M7 according to their performance and characteristics.