is it ALWAYS a 7-digit number ?

What exactly is the real task at hand for? Knowing what the task really is might make it easier to come up with a good solution.