The IMO page on Wikipedia links to externalresources stating that IMO numbers can be validated with a simple algorithm.
The integrity of an IMO number can be verified using its check digit. This is done by multiplying each of the first six digits by a factor of 2 to 7 corresponding to their position from right to left. The rightmost digit of this sum is the check digit. For example, for IMO 9074729: (9×7) + (0×6) + (7×5) + (4×4) + (7×3) + (2×2) = 139.
The IMO page on Wikipedia links to external resources stating that IMO numbers can be validated with a simple algorithm.