cpu numbers start at zero.

Also, don't bother with two separate "out of range" cases.