Only check 3-digit numbers, it was still correct but I didn't quite understand the problem