There is a checksum on credit card numbers, but I have forgotten exactly how it works (it was something like adding up all the digits and then again adding every other one into the sum). It could detect, but not correct an error in one digit.
Csaba
Also, I'm sure you know, MC starts with 5, Visa with 4, and Amex with 3