Thanks,
since I needed to genereate those iban prefixes and the solution on that page is related to validation at first I didn't look at it too deep, but now I realized there are only 100 combinations (from '00' trough '99') so I can just loop and check each value. The good one should surface very quickly.